Skip to content

Commit

Permalink
[chore] update readme syntax flavour to jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
spen authored and diasbruno committed Aug 28, 2017
1 parent b908042 commit 2adb45d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The Modal object has two required props:

Example:

```xml
```jsx
<Modal
isOpen={bool}
onAfterOpen={afterOpenFn}
Expand Down Expand Up @@ -84,7 +84,7 @@ an object where the keys are the names of the attributes without the prefix

Example:

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

Inside an app:

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

```xml
```jsx
<Modal
isOpen={bool}
onAfterOpen={afterOpenFn}
Expand Down

0 comments on commit 2adb45d

Please sign in to comment.