when i edit the tag 'learn react' to 'learn react pranjal' in app.js and then save and reload it no change is observed in browser , why? pls help me

Viewed 29
  when i edit the tag 'learn react' to 'learn react pranjal' in app.js and then save and 
reload it no change is observed in browser , why? pls help me

function App() { return (

Edit src/App.js and save to reload.

Learn react pranjal ); }

1 Answers

What do you write in your terminal to run it?

Depending on what you write to run the react app the update-on-save function might not be working.

If you are using npm in WSL2.0 for development, please refer the last point in this- https://create-react-app.dev/docs/troubleshooting/#npm-start-doesnt-detect-changes

While WSL1.0 doesn't use a VM, WSL2.0 does use a lightweight VM, so adding

CHOKIDAR_USEPOLLING=true 

in a .env file in the project directory fixed the problem.

Related