After getting values from the form control, it stores the value based on the name of key like this: Any modifications the user makes to the the initial or an empty value are reflected in the state object of the components. // change text back after 1 second, Change button's text on click and revert after delay. How dry does a rock/metal vocal have to be during recording? button element. This will change the components state, and makes React render the div instead of the a-tag. I want to do the following: If a user clicks on a paragraph I want to change the element to an input field that has the contents of the paragraph prefilled. In HTML, form elements such as ,