Skip to content

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

Merged
merged 1 commit into from
Jan 3, 2017

Conversation

hiroppy
Copy link
Contributor

@hiroppy hiroppy commented Jan 1, 2017

Changes proposed:
We use const in README.md's sample.

Upgrade Path (for changed or removed APIs):

Acceptance Checklist:

  • All commits have been squashed to one.
  • The commit message follows the guidelines in CONTRIBUTING.md.
  • Documentation (README.md) and examples have been updated as needed.
  • If this is a code change, a spec testing the functionality has been added.
  • If the commit message has [changed] or [removed], there is an upgrade path above.

@coveralls
Copy link

coveralls commented Jan 1, 2017

Coverage Status

Coverage remained the same at 76.667% when pulling eb842b5 on abouthiroppy:feature/update-readme into e10181d on reactjs:master.

var React = require('react');
var ReactDOM = require('react-dom');
var Modal = require('react-modal');
const React = require('react');
Copy link
Contributor

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({
Copy link
Contributor

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?

Copy link
Contributor Author

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 :)

@hiroppy hiroppy force-pushed the feature/update-readme branch from eb842b5 to 088f844 Compare January 1, 2017 15:38
@hiroppy
Copy link
Contributor Author

hiroppy commented Jan 1, 2017

@claydiffrient Updated.

@hiroppy hiroppy changed the title Replace var with const in README.md Modify es2015 syntax in README.md Jan 1, 2017
@coveralls
Copy link

coveralls commented Jan 1, 2017

Coverage Status

Coverage remained the same at 76.753% when pulling 088f844 on abouthiroppy:feature/update-readme into d50918c on reactjs:master.

@hiroppy hiroppy changed the title Modify es2015 syntax in README.md Modify the sample code to es2015 syntax in README.md Jan 1, 2017
@hiroppy hiroppy force-pushed the feature/update-readme branch from 088f844 to 647d31e Compare January 1, 2017 15:43
@coveralls
Copy link

coveralls commented Jan 1, 2017

Coverage Status

Coverage remained the same at 76.753% when pulling 647d31e on abouthiroppy:feature/update-readme into d50918c on reactjs:master.

@claydiffrient claydiffrient merged commit 8108173 into reactjs:master Jan 3, 2017
@hiroppy hiroppy deleted the feature/update-readme branch January 5, 2017 07:30
diasbruno pushed a commit to diasbruno/react-modal that referenced this pull request Jun 14, 2017
@diasbruno diasbruno mentioned this pull request Jun 14, 2017
5 tasks
diasbruno pushed a commit to diasbruno/react-modal that referenced this pull request Jun 15, 2017
diasbruno pushed a commit to diasbruno/react-modal that referenced this pull request Jun 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants