I have been successful in dynamically generating input text boxes when a button is clicked, but I ran into problems when saving the values into state.
I have decided to start fresh again, should I be using a map or an array in my state?
I want to be able to store the value of the text box with its relating input id.
class myPage extends Component {
constructor(props) {
super(props);
this.state = {
}
}
render() {
return (
<div className="container-fluid cf">
<div className="card">
<div className="card-header">
Test Page
</div >
<div className="card-body">
<form>
<button>Add text box</button>
</form>
</div>
</div>
</div>
);
}
};