Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the Production Build #27

Closed
PabloValdezZaelot opened this issue Oct 18, 2022 · 0 comments
Closed

Use the Production Build #27

PabloValdezZaelot opened this issue Oct 18, 2022 · 0 comments

Comments

@PabloValdezZaelot
Copy link

PabloValdezZaelot commented Oct 18, 2022

If you’re benchmarking or experiencing performance problems in your React apps, make sure you’re testing with the minified production build.

By default, React includes many helpful warnings. These warnings are very useful in development. However, they make React larger and slower so you should make sure to use the production version when you deploy the app.

If you aren’t sure whether your build process is set up correctly, you can check it by installing React Developer Tools for Chrome (https://chrome.google.com/webstore/detail/react-developer-tools/fmkadmapgofadopljbjfkapdkoienihi).

If you visit a site with React in production mode, the icon will have a dark background:
image

If you visit a site with React in development mode, the icon will have a red background:
image

It is expected that you use the development mode when working on your app, and the production mode when deploying your app to the users.

@Javier-Miles Javier-Miles closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants