SSR using Unistyles 3.0
Unistyles 3.0 is fully compatible with Next.js Server Side Rendering (SSR). We’re supporting both client and server components.
Usage
To use server-side rendered styles, create following client side component:
With the component in place, make sure it wraps your body’s children:
With this setup, we will ensure that Unistyles is initialized correctly and injects CSS on the server side.