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
18 lines
368 B
TypeScript
18 lines
368 B
TypeScript
import React, { ReactNode } from 'react'
|
|
import './global.css'
|
|
import server from './server.module.css'
|
|
|
|
import Inner from './inner'
|
|
|
|
export default function Layout({ children }: { children: ReactNode }) {
|
|
return (
|
|
<>
|
|
<p id="server" className={`global-class ${server.class}`}>
|
|
Hello Server
|
|
</p>
|
|
<Inner />
|
|
{children}
|
|
</>
|
|
)
|
|
}
|