Stop using too many useState() in React

Here’s an alternative way to avoid useState hook hell in React

Harsha Vardhan
JavaScript in Plain English
3 min readJan 16, 2023

--

Photo by Thomas Park on Unsplash

Have you ever been in a situation where you get to use too many useState hooks in a single component? Well here’s an example of what I’m talking about:

--

--

Engineer, Photographer, Tech Blogger. Builds products and writes for developers. I love to code and love to help others code :)