Skip to content

Commit 2adb45d

Browse files
spendiasbruno
authored andcommitted
[chore] update readme syntax flavour to jsx
1 parent b908042 commit 2adb45d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The Modal object has two required props:
3434

3535
Example:
3636

37-
```xml
37+
```jsx
3838
<Modal
3939
isOpen={bool}
4040
onAfterOpen={afterOpenFn}
@@ -84,7 +84,7 @@ an object where the keys are the names of the attributes without the prefix
8484

8585
Example:
8686

87-
```js
87+
```jsx
8888
<Modal
8989
isOpen={modalIsOpen}
9090
aria={{
@@ -205,7 +205,7 @@ You can use this to remove scrolling on the the body while the modal is open.
205205

206206
Inside an app:
207207

208-
```js
208+
```jsx
209209
import React from 'react';
210210
import ReactDOM from 'react-dom';
211211
import Modal from 'react-modal';
@@ -288,7 +288,7 @@ When using React Test Utils with this library, here are some things to keep in m
288288
By default the modal is closed when clicking outside of it (the overlay area). If you want to prevent this behavior you can
289289
pass the 'shouldCloseOnOverlayClick' prop with 'false' value.
290290

291-
```xml
291+
```jsx
292292
<Modal
293293
isOpen={bool}
294294
onAfterOpen={afterOpenFn}

0 commit comments

Comments
 (0)