-
Notifications
You must be signed in to change notification settings - Fork 813
Modify the sample code to es2015 syntax in README.md #295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
var React = require('react'); | ||
var ReactDOM = require('react-dom'); | ||
var Modal = require('react-modal'); | ||
const React = require('react'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we go ahead and do import React from 'react';
here?
@@ -155,7 +155,7 @@ const customStyles = { | |||
}; | |||
|
|||
|
|||
var App = React.createClass({ | |||
const App = React.createClass({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps convert this over to ES2015 class syntax as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, so I'll change es2015 syntax :)
eb842b5
to
088f844
Compare
@claydiffrient Updated. |
var
with const
in README.md088f844
to
647d31e
Compare
Changes proposed:
We use
const
in README.md's sample.Upgrade Path (for changed or removed APIs):
Acceptance Checklist:
CONTRIBUTING.md
.