Skip to content

Commit 7d9b48f

Browse files
committed
Production tips
1 parent 713d10a commit 7d9b48f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

content/docs/add-react-to-a-website.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Commonly, you might want to display React components in multiple places on the H
111111

112112
Before deploying your website to production, be mindful that unminifed JavaScript can significantly slow down the page for your users.
113113

114-
If you already minify the application scripts, your site will be production-ready if you ensure that the deployed HTML loads the versions of React ending in `production.min.js`:
114+
If you already minify the application scripts, **your site will be production-ready if you ensure that the deployed HTML loads the versions of React ending in `production.min.js`:**
115115

116116
```js
117117
<script src="https://unpkg.com/react@16/umd/react.production.min.js" crossorigin></script>

content/docs/create-a-new-react-app.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,5 @@ A JavaScript build toolchain typically consists of:
8989
* A **compiler** such as [Babel](http://babeljs.io/). It lets you write modern JavaScript code that still works in older browsers.
9090

9191
If you prefer to set up your own JavaScript toolchain from scratch, [check out this guide](https://blog.usejournal.com/creating-a-react-app-from-scratch-f3c693b84658) that re-creates some of the Create React App functionality.
92+
93+
Don't forget to ensure your custom toolchain [is correctly set up for production](/docs/optimizing-performance.html#use-the-production-build).

0 commit comments

Comments
 (0)