mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 04:33:10 +00:00
fix(terms): treeshaking -> tree shaking (#1977)
This commit is contained in:
@@ -247,7 +247,7 @@ const App = () => (
|
||||
|
||||
## Named Exports {#named-exports}
|
||||
|
||||
`React.lazy` currently only supports default exports. If the module you want to import uses named exports, you can create an intermediate module that reexports it as the default. This ensures that treeshaking keeps working and that you don't pull in unused components.
|
||||
`React.lazy` currently only supports default exports. If the module you want to import uses named exports, you can create an intermediate module that reexports it as the default. This ensures that tree shaking keeps working and that you don't pull in unused components.
|
||||
|
||||
```js
|
||||
// ManyComponents.js
|
||||
|
||||
Reference in New Issue
Block a user