We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We could save bytes if we do like other vdom packages do, namely use a short alias name for React.createElement.
React.createElement
For example:
var h = require("react").React; h("div", ... );
instead of
var React = require("react"); React.createElement("div", ... );
The text was updated successfully, but these errors were encountered:
I just tried out PR #176 in a small production app with --create-element-alias _h, and size went from 303 k to 297 k... Not bad.
--create-element-alias _h
Sorry, something went wrong.
No branches or pull requests
We could save bytes if we do like other vdom packages do, namely use a short alias name for
React.createElement
.For example:
instead of
The text was updated successfully, but these errors were encountered: