Changing File Content and Viewing the Result

This following steps show how changing the content of a file causes the application to reload in the browser:

  1. Open a console window.
  2. Go to the hello-react folder.
  3. Run npm start.
  4. Launch a browser and go to http://localhost:3000.
  5. Launch a text editor and open the App.js file.
  6. Search for the following line of code:
To get started, edit <code>src/App.js</code> and save to reload.
  1. Replace the code mentioned in step 6 with the following line of code:
Hello React!
  1. Save the file.
  2. Check the browser content. Now it should display the new text.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.34.25