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

Move from createClass to ES classes using react-codemod/transforms/class #7679

Merged
merged 1 commit into from
Sep 8, 2016

Conversation

koba04
Copy link
Contributor

@koba04 koba04 commented Sep 8, 2016

I run react-codemod/transforms/class.js to src directory, which is for moving React codebase to ES classes components.

ref. #7321

@zpao
Copy link
Member

zpao commented Sep 8, 2016

I'm assuming we might have had a reason to not do this already but I'm not sure. @spicyj, @gaearon, or @keyanzhang might know best. Seems fine to do (though we might want to look to see if the inevitable byte cost for the class transform is worth it)

@sophiebits sophiebits added this to the 15-next milestone Sep 8, 2016
@sophiebits
Copy link
Collaborator

I think this is fine. We already use classes elsewhere.

@sophiebits sophiebits merged commit df03318 into facebook:master Sep 8, 2016
@koba04
Copy link
Contributor Author

koba04 commented Sep 9, 2016

Thanks!

@koba04 koba04 deleted the run-codemod-for-createclass branch September 9, 2016 01:32
acdlite pushed a commit to acdlite/react that referenced this pull request Sep 9, 2016
@zpao zpao modified the milestones: 15-next, 15.4.0 Oct 4, 2016
zpao pushed a commit that referenced this pull request Oct 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants