-
Notifications
You must be signed in to change notification settings - Fork 112
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
Should we mention babel-react-optimize
?
#9
Comments
So, to sum this up:
Recommending Want to make a PR? :–) |
Sure thing! this saves another 11 bytes for single line returns and 2 for multiple statements. I wonder if it's worth it to create a plugin for that case. |
Might worth it! Such conversion might break the |
See here for more details: https://medium.com/doctolib-engineering/improve-react-performance-with-babel-16f1becfaa25
Personally, I'm using
babel-plugin-transform-react-pure-class-to-function
most of the time.plugin-transform-react-inline-elements
is buggy and disabled increate-react-app
, same forplugin-transform-react-constant-elements
as it hurts TTI - see: facebook/create-react-app#553 (comment)The text was updated successfully, but these errors were encountered: