Settings

Theme

React.useState for 3 years, before finding the limits

yagudaev.com

1 points by yagudaev a year ago · 1 comment

Reader

yagudaevOP a 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

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection