The widespread use of React on large websites shows that it is stable enough to use at scale. React is ready.
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:
$ node -v
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:
$ npm -v
Then, if you are running anything less than version 8, you will need to update npm:
$ sudo npm update -g npm
Make sure to run the Command Prompt with administrator privileges:
$ npm update -g npm
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:
$ sudo npm install -g yarn
Finally, there are some nice options for switching Node versions. This is not required, but you can optionally install one of these version mangers:
Next, install the React developer tools:
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.
Finally, we have some links to resources and official documentation for the libraries that we will be using: