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
onChangeTexts. You can get rid of those, and just get the value when you need it (and avoid re-renders) if you use
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.