2 ms·
Agreed that having React available as native ES Modules would be good. There's an open issue on that: https://github.com/facebook/react/issues/11503 https://gi
by acemarke 5y ago
Agreed that having React available as native ES Modules would be good. There's an open issue on that:
https://github.com/facebook/react/issues/11503 https://github.com/facebook/react/issues/11503
However, there really isn't anything to tree-shake in React. The renderer implementation is effectively a single consolidated set of logic that handles all work for all types of components. So, there's no unused functions to get shaken out.