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
you can use the controlled component and pass the value to it.
{this.setState({value:e.target.value })}}