In HTML, form elements such as ,
We can combine the two by making the React state be the “single source of truth”. Then the React component that renders a form also controls what happens in that form on subsequent user input. An input form element whose value is controlled by React in this way is called a “controlled component”.
How do we target what the user is entering if we have an event handler on an input field?
Source:
https://reactjs.org/docs/forms.html https://codeburst.io/javascript-the-conditional-ternary-operator-explained-cac7218beeff
Bookmarks: https://react-bootstrap.github.io/forms/overview/ https://reactjs.org/docs/conditional-rendering.html