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 078e290 commit d1b1500Copy full SHA for d1b1500
README.md
@@ -48,15 +48,13 @@ class Widget extends React.Component {
48
}
49
50
render() {
51
- const { checked, expanded } = this.state;
52
-
53
return (
54
- <Tree
+ <CheckboxTree
55
nodes={nodes}
56
- checked={checked}
57
- expanded={expanded}
58
- onCheck={checked => this.setState({ checked }}
59
- onExpand={expanded => this.setState({ expanded }}
+ checked={this.state.checked}
+ expanded={this.state.expanded}
+ onCheck={checked => this.setState({ checked })}
+ onExpand={expanded => this.setState({ expanded })}
60
/>
61
);
62
0 commit comments