Skip to content
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

Syntax grammar style #121

Closed
itsjimbo opened this issue Jul 16, 2016 · 2 comments
Closed

Syntax grammar style #121

itsjimbo opened this issue Jul 16, 2016 · 2 comments
Labels

Comments

@itsjimbo
Copy link

Just curious if there any particular reason that the entire application is written with

export default React.createClass( {

instead of

export default class Foo extends React.Component {

Not an issue, just wanted to understand rationale...

@FredericHeem
Copy link
Owner

Please have a look at my comments on why I prefer createClass over class: reactjs/core-notes#15 (comment)
Ultimately, favor stateless component over stateful component.

@itsjimbo
Copy link
Author

Just following up, interestingly FB seems determined to deprecate React.createClass, or move it to a separate package, what does this spell out for StarHackIt or any thoughts?

I followed up on some of their notes, and they were running 80% coverage on class usage using their ES2015 converter..
https://github.com/reactjs/core-notes/blob/master/2016-07/july-28.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants