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

[core] Use the same react pattern everywhere #9520

Merged
merged 1 commit into from
Dec 16, 2017

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Dec 16, 2017

We were using import React from 'react'; for 90%+ of the codebase. Now, it's 100%.
The main argument for doing it the other way around is code splitting. But given React needs to be imported for React.createElement. It's unlikely we will ever see code splitting working with React.

So, instead, let's improve gzipped efficiency. It's reducing the entropy of the project 🎉 .

@oliviertassinari oliviertassinari merged commit 8c06688 into mui:v1-beta Dec 16, 2017
@oliviertassinari oliviertassinari deleted the core-use-react branch December 16, 2017 18:14
@zannager zannager added the core Infrastructure work going on behind the scenes label Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Infrastructure work going on behind the scenes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants