Open utkarsh-1602 opened 10 months ago
Redux enforces immutability, which is a good practice for predictable state changes. However, it often requires a lot of boilerplate code to achieve this. Zustand simplifies immutability by allowing you to directly mutate state, thanks to its integration with React's useReducer and useState hooks.
In my
hooks/use-store-modal.tsx
, I've defined the zustand object