Browse Source

fix(terms): treeshaking -> tree shaking (#1977)

main
Peng Jie 6 years ago
committed by Alexey Pyltsyn
parent
commit
a211417f66
  1. 2
      content/docs/code-splitting.md

2
content/docs/code-splitting.md

@ -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

Loading…
Cancel
Save