top | item 41183935

React.useState for 3 years, before finding the limits

1 points| yagudaev | 1 year ago |yagudaev.com

1 comment

order

yagudaev|1 year ago

Hi everyone ,

Wrote a short article about my state management journey in React. The tl;dr; is 10 years of react, I decided to keep things simple and only `useState` and basic react hooks.

For the last 3 years, I've been using basic react hooks and it was more than enough. Until, I tried to build a more complex UI and finally needed a bit more.

Endedup using Zustand to help manage the state and avoid stale inter-connected state.

Hope it helps someone out there