The Controlled Component : is a atandard technique to handle the form submission, get the user data and use it . The value of the form input which be controlled by react .
User responses to the form will be keep in the state and the update of user input by using only setstate.
if we have an event handler on an input field and we want to target what the user enter, we can use hendleChange on every input to make the update and display the updated values of the user input.(this is the function of controlled Components).
The Conditional Ternary Operator used as the if statement (check condition , make statement if true and another statement if false ) but in shortcut way in Comparison with if.
The Conditional Ternary Operator take 3 components :
The Sources :