This following steps show how changing the content of a file causes the application to reload in the browser:
- Open a console window.
- Go to the hello-react folder.
- Run npm start.
- Launch a browser and go to http://localhost:3000.
- Launch a text editor and open the App.js file.
- Search for the following line of code:
To get started, edit <code>src/App.js</code> and save to reload.
- Replace the code mentioned in step 6 with the following line of code:
Hello React!
- Save the file.
- Check the browser content. Now it should display the new text.