Tangible Bytes

A Web Developer’s Blog

Install Reactjs

I’ve been writing software for long enough to know that it pays to be careful at the start. You don’t always know when you’ll be supporting a project long term and may need to upgrade versions of your framework and related tools.

These are my notes of starting to use React with an eye to long term support.

First of all use use nvm to install node so that you can have different projects on different node versions.

If you need to make a small change on an old project you don’t want to be forced to upgrade it just to be able to test.

Start with the recommended LTS version (unless you know a good reason to do different)

nvm install --lts=erbium
npx create-react-app my-app
cd my-app
npm start