rsnext/examples/using-preact/pages/ssr.js
Yuji Matsumoto 629884af7d
Update using-preact example's dependencies (#18493)
- Update Next.js version to 10.0.0
- Update the other dependencies
- Modify `next.config.js` to prevent circular `__self` and `__source`in dev env (ref: https://github.com/developit/nextjs-preact-demo/issues/25)
2020-10-29 22:52:27 +00:00

9 lines
184 B
JavaScript

export default function SSR({ framework }) {
return <div>{framework} ssr example</div>
}
export function getServerSideProps() {
return {
props: { framework: 'preact' },
}
}