Skip to content

Commit e342e44

Browse files
authored
Better callout for the install
The blockqoute was previously making the installation part appear to be missing. This PR improves visibility.
1 parent 9ffc207 commit e342e44

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)