Getting StartedReact
Server Side Rendering (Next.js)
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.