Here's an interesting fact I wanted to share after reading this. When I started learning React in 2017, I built a big project for a client in React.
What's crazy is that I didn't use state management at all in it. But now that I look back at it, I feel like it could've been made much better with it. Anyhow, great read.
Which takes the state away from the input and stores it in React. The only problem with this is it now takes process time, even though it's only a small amount, between each key stroke.
Here's an interesting fact I wanted to share after reading this. When I started learning React in 2017, I built a big project for a client in React.
What's crazy is that I didn't use state management at all in it. But now that I look back at it, I feel like it could've been made much better with it. Anyhow, great read.
That is interesting. I try to use a few states as possible myself though, of course, still use a few.
For instance it's common to see a snippet like
Which takes the state away from the input and stores it in React. The only problem with this is it now takes process time, even though it's only a small amount, between each key stroke.
I'm much more likely to do something like
This has the exact same outcome but will only need process time when the button is pressed rather than on every key stroke.