Browse Source

Handling Multiple Inputs (#2260)

Text says to use "__name__" but code shows usage of "__type__".
main
Rajinder Yadav 5 years ago
committed by GitHub
parent
commit
a35a95fb4b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/forms.md

2
content/docs/forms.md

@ -220,7 +220,7 @@ class Reservation extends React.Component {
handleInputChange(event) {
const target = event.target;
const value = target.type === 'checkbox' ? target.checked : target.value;
const value = target.name === 'isGoing' ? target.checked : target.value;
const name = target.name;
this.setState({

Loading…
Cancel
Save