Skip to content

Commit b96effb

Browse files
committed
install and import in usage doc
1 parent ffd2dca commit b96effb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

example/index.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,19 @@ var App = React.createClass({
3737
<form>
3838
<h1>react-toggle</h1>
3939

40+
{/* Installation */}
41+
42+
<div className="example">
43+
<div>Installation</div>
44+
<pre>
45+
{`npm install react-toggle`}
46+
</pre>
47+
<pre>
48+
{`import Toggle from 'react-toggle'`}
49+
</pre>
50+
51+
</div>
52+
4053
{/* Bacon */}
4154

4255
<div className="example">
@@ -137,7 +150,6 @@ var App = React.createClass({
137150
</pre>
138151
</div>
139152

140-
141153
</form>
142154
)
143155
}

0 commit comments

Comments
 (0)