I am following the ReactJS tutorial on the official site and I am curious about a design choice. Basically the tutorial said we need to have a handleChange function on every input's onChange.
handleAuthorChange: function(e) {
this.setState({author: e.target.value});
},
<input
type="text"
placeholder="Your name"
value={this.state.author}
onChange={this.handleAuthorChange}
/>
Does it mean if I have a form that has 10 text inputs and 3 checkbox inputs every single one of them needs to have a "handleChange" function?
What is the best practices of handling this situation?