When you set up a form in react/react native, you’re probably setting up a state for each input in the form.
Something like this
If you have a lot of inputs, that means a lot of states
and onChangeTexts
. You can get rid of those, and just get the value when you need it (and avoid re-renders) if you use references
Make sure to give this post a 👏 if you learned something, and let me know in the comments below if you already knew this react mistake.