Home
Public
Private
404
Next.js SPA using React Router v6
Home Page
Link Tests
Posts
|
post one
|
post two
Using React Router <Link>
/ - (react-router)
/public - (react-router)
/private-nested - (react-router)
/private-outlet - (react-router)
/private-with-auth Private Functional HOC - (react-router)
/private-with-auth-class Private Class HOC - (react-router)
/users - (react-router)
/users/12345-xyz - (react-router)
/users/me - (react-router)
/client-only - (react-router)
/foo - (react-router)
/foo/bar - (react-router)
/get-static-props - (next)
/get-server-side-props - (next)
/about - (next)
/fake-page-to-404 - (react-router)
/api/example - (next-api)
/.netlify/functions/hello - (netlify-function)
Using NextJS <NextLink>
/ - (react-router)
/public - (react-router)
/private-nested - (react-router)
/private-outlet - (react-router)
/private-with-auth - (react-router)
/private-with-auth-class - (react-router)
/users - (react-router)
/users/12345-xyz - (react-router)
/users/me - (react-router)
/client-only - (react-router)
/foo - (react-router)
/foo/bar - (react-router)
/get-static-props - (next)
/get-server-side-props - (next)
/about - (next)
/fake-page-to-404 - (react-router)
/api/example - (next-api)
/.netlify/functions/hello - (netlify-function)
Using Normal <a> tag
/ - (react-router)
/public - (react-router)
/private-nested - (react-router)
/private-outlet - (react-router)
/private-with-auth - (react-router)
/private-with-auth-class - (react-router)
/users - (react-router)
/users/12345-xyz - (react-router)
/users/me - (react-router)
/client-only - (react-router)
/foo - (react-router)
/foo/bar - (react-router)
/get-static-props - (next)
/get-server-side-props - (next)
/about - (next)
/fake-page-to-404 - (react-router)
/api/example - (next-api)
/.netlify/functions/hello - (netlify-function)