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

Potential optimization: constant elements #31

Open
elsassph opened this issue Apr 17, 2016 · 0 comments
Open

Potential optimization: constant elements #31

elsassph opened this issue Apr 17, 2016 · 0 comments

Comments

@elsassph
Copy link
Contributor

"Hoists element creation to the top level for subtrees that are fully static, which reduces call to React.createElement and the resulting allocations. More importantly, it tells React that the subtree hasn't changed so React can completely skip it when reconciling."

cf. http://babeljs.io/docs/plugins/transform-react-constant-elements/

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

No branches or pull requests

1 participant