Skip to content

Commit

Permalink
Merge pull request #195 from drewswaycool/patch-1
Browse files Browse the repository at this point in the history
Better callout for the install
  • Loading branch information
scniro committed Jun 18, 2020
2 parents 9ffc207 + e342e44 commit fbe96c7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Expand Up @@ -9,7 +9,12 @@

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

> npm install react-codemirror2 codemirror --save

## Install

```bash
npm install react-codemirror2 codemirror --save
```

`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.

Expand Down

0 comments on commit fbe96c7

Please sign in to comment.