mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Ensure all CSS files are included for experimental critical CSS * remove extra import
22 lines
383 B
JavaScript
22 lines
383 B
JavaScript
import styles from '../styles/index.module.css'
|
|
import dynamic from 'next/dynamic'
|
|
|
|
const Hello = dynamic(() => import('../components/hello'))
|
|
|
|
export default function Home() {
|
|
return (
|
|
<div className={styles.hello}>
|
|
<p>Hello World</p>
|
|
<Hello />
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export const getServerSideProps = () => {
|
|
return {
|
|
props: {
|
|
hello: 'world',
|
|
},
|
|
}
|
|
}
|