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
+9-5Lines changed: 9 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,21 @@
10
10
11
11

12
12
13
-
# Installation
13
+
##Installation
14
14
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)):
15
+
The easiest way to use react-checkbox-tree is to install using your favorite dependency manager 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
17
```
18
18
npm install react-checkbox-tree --save
19
19
```
20
20
21
+
```shell
22
+
yarn add react-checkbox-tree
23
+
```
24
+
21
25
> **Note**– This library makes use of [Font Awesome](http://fontawesome.io/) styles and expects them to be loaded in the browser.
22
26
23
-
# Usage
27
+
##Usage
24
28
25
29
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.
26
30
@@ -61,7 +65,7 @@ class Widget extends React.Component {
0 commit comments