next js
In the ground since Fri Oct 01 2021
Last watered inFri Oct 01 2021
Related Topics
Next JS
Recipes
Go Back Behavior
for client Component
Cons
Working with Framer Motion
We can see lagged animations during development time specially, when using Framer Motion with Next JS. This is because Next JS is server-side rendered and Framer Motion is a client-side library. To fix this we can use the useEffect hook to render the animations only on the client-side.