Skip to content

Commit

Permalink
Merge eb842b5 into e10181d
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroppy committed Jan 1, 2017
2 parents e10181d + eb842b5 commit 66a718c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ You can use this to remove scrolling on the the body while the modal is open.
Inside an app:

```js
var React = require('react');
var ReactDOM = require('react-dom');
var Modal = require('react-modal');
const React = require('react');
const ReactDOM = require('react-dom');
const Modal = require('react-modal');


/*
Expand All @@ -139,7 +139,7 @@ Modal.setAppElement(appElement);
Modal.setAppElement('#your-app-element');
*/
var appElement = document.getElementById('your-app-element');
const appElement = document.getElementById('your-app-element');



Expand All @@ -155,7 +155,7 @@ const customStyles = {
};


var App = React.createClass({
const App = React.createClass({

getInitialState: function() {
return { modalIsOpen: false };
Expand Down Expand Up @@ -202,7 +202,7 @@ var App = React.createClass({
}
});

ReactDOM.render(<App/>, appElement);
ReactDOM.render(<App />, appElement);
```
# Testing

Expand Down

0 comments on commit 66a718c

Please sign in to comment.