DEV Community

Discussion on: How to add dark theme easily in NextJS using Zustand and Tailwind.

Collapse
 
bhendi profile image
Jyothikrishna

But if we create our state inside a custom hook then we don't need prop drilling right ?

Thread Thread
 
touficnabi profile image
Toufic Nabi

Correct! thats another way of doing it.
But in my opinion, zustand is much more easy to deal with also, easy to manage the state in the localStorage.