We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7619c05 commit e291120Copy full SHA for e291120
docs/app/components/layout/main/modules/examples/checkbox_example_1.txt
@@ -4,8 +4,8 @@ class TestCheckbox extends React.Component {
4
check2: false
5
};
6
7
- handleChange = (field) => {
8
- this.setState({ [key]: value });
+ handleChange = (field, value) => {
+ this.setState({...this.state, [field]: value});
9
10
11
render () {
0 commit comments