I have a bunch of TextInput fields, and on form submit i would like to highlight the ones that are left empty or with invalid content. (using a border)
Whats is a good approach for handling this with minimum code ?
having a state for "isEmpty" which is being updated on submit and conditionally render the css for each of them seems a bit overkill since there is quite a few fields.
Is there a way to fetch a TextInput by an ID or name and dynamically update or append to the CSS rules that way in React Native