Skip to content

Commit 6f73764

Browse files
committed
[chore] update installation documentation.
1 parent e5090de commit 6f73764

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Diff for: docs/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
55
We maintain that accessibility is a key component of any modern web application. As such, we have created this modal in such a way that it fulfills the accessibility requirements of the modern web. We seek to keep the focus on accessibility while providing a functional, capable modal component for general use.
66

7+
## Installation
8+
9+
To install the stable version you can use [npm](https://npmjs.org/) or [yarn](https://yarnpkg.com):
10+
11+
12+
$ npm install react-modal
13+
$ yarn add react-modal
14+
15+
716
## General Usage
817

918
The following is an example of using react-modal specifying all the possible props and options:
@@ -76,15 +85,6 @@ import ReactModal from 'react-modal';
7685
/>
7786
```
7887

79-
## Install
80-
81-
With [npm](https://npmjs.org/) installed, run
82-
83-
```
84-
$ npm install react-modal
85-
```
86-
87-
8888
## License
8989

9090
MIT

0 commit comments

Comments
 (0)