Skip to content

Commit

Permalink
Update documentation by my suggestion in reactjs#889
Browse files Browse the repository at this point in the history
Noticing cdn install in docs because I'd to check <ReactModal> tag in docs example but didn't see this in Installation section :)
  • Loading branch information
EliseyMartynov authored and diasbruno committed Jun 18, 2021
1 parent fd193f2 commit d5ecf0a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,18 @@ To install the stable version you can use [npm](https://npmjs.org/) or [yarn](ht

$ npm install react-modal
$ yarn add react-modal


To install react-modal in React CDN app:

- Add this CDN script tag after React CDN scripts and before your JS files (for example from [cdnjs](https://cdnjs.com/)):

<script src="https://cdnjs.cloudflare.com/ajax/libs/react-modal/3.14.3/react-modal.min.js"
integrity="sha512-MY2jfK3DBnVzdS2V8MXo5lRtr0mNRroUI9hoLVv2/yL3vrJTam3VzASuKQ96fLEpyYIT4a8o7YgtUs5lPjiLVQ=="
crossorigin="anonymous"
referrerpolicy="no-referrer"></script>

- Use `<ReactModal>` tag inside your React CDN app.


## [General Usage](#usage)

Expand Down

0 comments on commit d5ecf0a

Please sign in to comment.