Chapter 1 : Introduction
The widespread use of React on large websites shows that it is stable enough to use at scale. React is ready.
Installing Node.js and NPM
When working with Node and React, you will need to use the command line. On the Mac, this is called the Terminal. On a PC, it is called the Command Prompt. Run the following commands to check your current version on node and npm. If needed, instructions on how to install or upgrade are below.
First, check to see if you have Node.js installed:
If this returns a version number, Node.js is installed. If the command is not found, you'll need to install Node.js from the Node.js website. Download the installer, run it, and follow the instructions.
Next, check your version of npm:
Then, if you are running anything less than version 8, you will need to update npm:
Update npm on Mac
Update npm on PC
Make sure to run the Command Prompt with administrator privileges:
Optionally install Yarn
Yarn is a package manager created at Facebook. It is a compatible alternative to npm. Yarn's use is not required, but you can optionally install it if you like:
Finally, there are some nice options for switching Node versions. This is not required, but you can optionally install one of these version mangers:
Installing the React Tools
Next, install the React developer tools:
Working with the Files
This repository links to samples hosted on various platforms, so that you can immediately begin interacting with the files. For smaller samples, we've linked to JSBins to allow you to run the sample with limited overhead. We also have links to CodeSandboxes and other repos if the samples are more in-depth.
React Resources
Finally, we have some links to resources and official documentation for the libraries that we will be using:
Last updated