// Input field listens to change, updates React's state and re-renders the component. this.setState({ value: e.target.value })} value={this.state.value} /> // Button is disabled when input state is empty.