Link to React documentation for code splitting (#7686)

The official documentation offers a simpler way of achieving route based code splitting.
This commit is contained in:
Hugo David-Boyet
2019-10-16 20:45:10 +02:00
committed by Ian Sutherland
parent 2da645c534
commit ca37609e7f

View File

@@ -51,6 +51,6 @@ You can also use it with `async` / `await` syntax if you prefer it.
## With React Router
If you are using React Router check out [this tutorial](https://serverless-stack.com/chapters/code-splitting-in-create-react-app.html) on how to use code splitting with it. You can find the companion GitHub repository [here](https://github.com/AnomalyInnovations/serverless-stack-demo-client/tree/code-splitting-in-create-react-app).
If you are using React Router check out [this tutorial](https://reactjs.org/docs/code-splitting.html#route-based-code-splitting)
Also check out the [Code Splitting](https://reactjs.org/docs/code-splitting.html) section in React documentation.