mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
### What? * order of CSS between layout and page * order of CSS between page and next/dynamic ### Why? ### How? * overrides webpack CSS chunk loading to use react CSS loading to allow them to share the order
16 lines
369 B
TypeScript
16 lines
369 B
TypeScript
'use client'
|
|
|
|
import base from './base.module.css'
|
|
import styles from './inner2.module.css'
|
|
|
|
export default async function Inner2() {
|
|
if (typeof window === 'undefined') {
|
|
throw new Error('Expected error to opt out of server rendering')
|
|
}
|
|
return (
|
|
<p id="inner2" className={`global-class ${base.class} ${styles.class}`}>
|
|
Hello Inner 2
|
|
</p>
|
|
)
|
|
}
|