()
| 1 | import Layout from '../components/layout' |
| 2 | |
| 3 | export default function Page () { |
| 4 | return ( |
| 5 | <Layout> |
| 6 | <h1>Client Side Rendering</h1> |
| 7 | <p> |
| 8 | This page uses the <strong>useSession()</strong> React Hook in the <strong></Header></strong> component. |
| 9 | </p> |
| 10 | <p> |
| 11 | The <strong>useSession()</strong> React Hook easy to use and allows pages to render very quickly. |
| 12 | </p> |
| 13 | <p> |
| 14 | The advantage of this approach is that session state is shared between pages by using the <strong>Provider</strong> in <strong>_app.js</strong> so |
| 15 | that navigation between pages using <strong>useSession()</strong> is very fast. |
| 16 | </p> |
| 17 | <p> |
| 18 | The disadvantage of <strong>useSession()</strong> is that it requires client side JavaScript. |
| 19 | </p> |
| 20 | </Layout> |
| 21 | ) |
| 22 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…