September 2017
Intermediate to advanced
120 pages
2h 47m
English
When you build a React app, you create a description of the desired result, then hand it over to React, which takes charge of modifying the DOM to match your description. Instead of enhancing existing HTML, you define the whole HTML structure in JavaScript. This makes it simpler to express the UI as a function of the data.
We’ll test our setup by outputting an <h1> header with the “Hello World” message. Typically, you use React to insert components into an existing HTML page, so you’ll usually generate the basic structure like the <head> and <body> tags on the server. You’ll use two files: index.html, which will contain the basic HTML skeleton, and hello.js, which will hold all the JavaScript code.
| | ├── index.html ... |
Read now
Unlock full access