DEV Community

Discussion on: You Can Definitely Use Global Variables To Manage Global State In React

Collapse
 
thgh profile image
Thomas Ghysels

Consider a comparison with zustand, which does exactly the same.
This approach does not work well with SSR and I would actually not recommend it.

Collapse
 
yezyilomo profile image
Yezy Ilomo

It actually works really well with SSR, I’ve used it several times with Nextjs, Stay tuned my next post will be about SSR with state-pool.