Problem description

When I created a project using the React scaffolding, I found that the browser didn’t refresh automatically when I saved the code. I had to refresh it manually before it showed up.

Problem solution

Create a new file named. Env in the package.json sibling directory and add the following

FAST_REFRESH=false
Copy the code

Stop the project and restart NPM start