You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+65-20Lines changed: 65 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,34 +10,79 @@
10
10

11
11
12
12
13
-
#Usage
13
+
## Installation
14
14
15
-
Install the library:
15
+
The easiest way to use react-checkbox-tree is to install from NPM and include it in your own React build process (e.g. using [Webpack](http://webpack.github.io/docs/what-is-webpack.html)):
16
16
17
-
```shell
17
+
```
18
18
npm install react-checkbox-tree --save
19
19
```
20
20
21
-
Then render the component:
21
+
## Usage
22
+
23
+
A quick usage example is included below. Note that the react-checkbox-tree component is [controlled](https://facebook.github.io/react/docs/forms.html#controlled-components). In other words, it is stateless. You must update its `checked` and `expanded` properties whenever a change occurs.
0 commit comments