MCPcopy
hub / github.com/nextauthjs/next-auth / Page

Function Page

app/pages/client.js:3–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1import Layout from '../components/layout'
2
3export 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>&lt;/Header&gt;</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}

Callers

nothing calls this directly

Calls 1

useSessionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…