Managing persistent States in Nextjs with Zustand

popEating
Dev Genius
Published in
7 min readApr 11, 2022

--

If you are building even the smaller web app, it will happen that you will need to store some kind of data and pass this data between components and from page to page.
You will usually keep data in a state and you manage the state sharing between pages and components by using Context or with a State Management Framework like Redux. This approach can introduce a lot of complexity in your app, and this is…

--

--