Fix checkbox readme

old
Javi Velasco 2015-12-03 01:00:59 +01:00
parent 16de3b4139
commit c8246f5c3b
1 changed files with 14 additions and 17 deletions

View File

@ -7,13 +7,10 @@
import Checkbox from 'react-toolbox/lib/checkbox';
class TestCheckbox extends React.Component {
state = {
check1: true,
check2: false
};
state = { check1: true, check2: false };
handleChange = (field, value) => {
this.setState({ [field]: value });
this.setState({...this.state, [field]: value});
};
render () {