* Replace react-loadable with two active alternatives.
`react-loadable` no longer has an active maintainer. Only personal forks are available for Webpack 4 + Babel 7 support.
* Remove react-universal-component.
Change recommendation to only `loadable-components` and link directly to the SSR documentation.
* Document React.lazy
Suspense is documented here since it's the only built-in way so far to
use it. In the future it'll likely be documented on its own more like
Error boundaries.
This hoists React.lazy as the primary way to do code splitting. However,
before getting into it we keep the recommendation to use react-loadable
for server-side rendered apps since Suspense is not yet ready for the
server.
* Tweaks
* Tweaks
* nits
Really enjoyed the newest code-splitting docs!
I caught a minor spelling error: `interuptive` -> `interruptive`. I decided to indulge the writer in myself, and chose to rephrase some things that I thought could be clearer.
That said, I recognize that many of the changes I'm making are subjective. More than happy to simply fix the typo, but I thought I'd submit this to see if others agree with my phrasing changes.
* Init Code-Splitting docs
* Fix <Route path="/"> to use exact
* Fix code splitting typos
* Fix note formatting on the website
* Minor tweaks
De-emphasize webpack, mention Next and Gatsby