How to display an input field on click of a button in place of the button and save the data entered The AddType is a button here. When this button is clicked, an input field should be displayed. The data entered in the input field should be saved when enter is pressed. Can anyone please help me with this? I need to use React and javascript here.