Рет қаралды 12,978
Dynamically Add Two Input Field When Button Click in React Js
To add two input fields when a button is clicked in React, you create a button that, when clicked, updates the state to include additional input fields. The state holds an array or list of input field configurations, and the component renders input fields based on this state. The button's click handler modifies the state to add new entries, which triggers a re-render to show the new input fields
code : github.com/Aka...
#react #addinputbuttonclick