I have a modal with some input fields. I can easily pass the data automatically with the user typing an input, using onChange function in the input field, as >
onChange
Pass in the value property for input:
{this.setState({value: e.target.value })}/>