55560e0c58
Converted auth0 example over to TypeScript to match the Contribution guidelines, and got rid of the `tslib` dependency. Note: You must copy `.env.local.example` to `.env.local`, or you will encounter "TypeError: "secret" is required" at build time. ## Documentation / Examples - [X] Make sure the linting passes by running `pnpm lint` - [X] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) Co-authored-by: Balázs Orbán <18369201+balazsorban44@users.noreply.github.com>
19 lines
529 B
TypeScript
19 lines
529 B
TypeScript
import Layout from '../components/layout'
|
|
import { useFetchUser } from '../lib/user'
|
|
|
|
const About = () => {
|
|
const { user, loading } = useFetchUser()
|
|
|
|
return (
|
|
<Layout user={user} loading={loading}>
|
|
<h1>About</h1>
|
|
<p>
|
|
This is the about page, navigating between this page and <i>Home</i> is
|
|
always pretty fast. However, when you navigate to the <i>Profile</i>{' '}
|
|
page it takes more time because it uses SSR to fetch the user first;
|
|
</p>
|
|
</Layout>
|
|
)
|
|
}
|
|
|
|
export default About
|