Server Side Rendering (Next.js)
Guide on setting up Server Side Rendering (SSR) with Next.js using the QuirksNextProvider.
If you want to use Next.js to provide server-side rendering capabilities, you'll need to use an additional provider. This allows you to avoid any hydration errors.
Usage with App Router
Create a providers.tsx
file:
Import it inside your layout.tsx
:
You did it 🎉! Now you can start using it as described inside quick start.
Usage with Pages Router
Add the providers inside your _app.tsx
:
You did it 🎉! Now you can start using it as described inside quick start.