Skip to content

Commit fbe96c7

Browse files
authored
Merge pull request #195 from drewswaycool/patch-1
Better callout for the install
2 parents 9ffc207 + e342e44 commit fbe96c7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@
99

1010
demo @ [scniro.github.io/react-codemirror2](https://scniro.github.io/react-codemirror2/)
1111

12-
> npm install react-codemirror2 codemirror --save
12+
13+
## Install
14+
15+
```bash
16+
npm install react-codemirror2 codemirror --save
17+
```
1318

1419
`react-codemirror2` ships with the notion of an [uncontrolled](https://reactjs.org/docs/uncontrolled-components.html) and [controlled](https://reactjs.org/docs/forms.html#controlled-components) component. `UnControlled` consists of a simple wrapper largely powered by the inner workings of `codemirror` itself, while `Controlled` will demand state management from the user, preventing codemirror changes unless properly handled via `value`. The latter will offer more control and likely be more appropriate with [redux](http://redux.js.org/) heavy apps.
1520

0 commit comments

Comments
 (0)