Skip to content

Commit d5ecf0a

Browse files
EliseyMartynovdiasbruno
authored andcommitted
Update documentation by my suggestion in #889
Noticing cdn install in docs because I'd to check <ReactModal> tag in docs example but didn't see this in Installation section :)
1 parent fd193f2 commit d5ecf0a

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

docs/index.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,18 @@ To install the stable version you can use [npm](https://npmjs.org/) or [yarn](ht
1111

1212
$ npm install react-modal
1313
$ yarn add react-modal
14-
14+
15+
To install react-modal in React CDN app:
16+
17+
- Add this CDN script tag after React CDN scripts and before your JS files (for example from [cdnjs](https://cdnjs.com/)):
18+
19+
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-modal/3.14.3/react-modal.min.js"
20+
integrity="sha512-MY2jfK3DBnVzdS2V8MXo5lRtr0mNRroUI9hoLVv2/yL3vrJTam3VzASuKQ96fLEpyYIT4a8o7YgtUs5lPjiLVQ=="
21+
crossorigin="anonymous"
22+
referrerpolicy="no-referrer"></script>
23+
24+
- Use `<ReactModal>` tag inside your React CDN app.
25+
1526

1627
## [General Usage](#usage)
1728

0 commit comments

Comments
 (0)