How to install ReactJS on macOS

ZeroesAndOnes
3 min readJan 29, 2022

In this article I will walk through the steps needed to install ReactJs on macOS and start a basic website.

1 — What is React

React is a free and open-source front-end JavaScript library for building user interfaces based on UI components. It is maintained by Meta and a community of individual developers and companies. React can be used as a base in the development of single-page or mobile applications.

You can visit ReactJS official website for additional information:

2 — Prerequisites for ReactJS

In order to successfully create and run a ReactJS project locally the following three software must be installed on your machine.

  • Node [Link]
    Node.js is an open-source, cross-platform, JavaScript runtime environment that executes JavaScript code outside of a browser.
  • npm [Link]
    npm is the world’s largest software registry. Open source developers from every continent use npm to share and borrow packages, and many organizations use npm to manage private development as well.

3 — Install prerequisites

In order to install Node and npm I recommend leveraging Homebrew. Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple’s operating system, macOS, as well as Linux. The name is intended to suggest the idea of building software on the Mac depending on the user’s taste.

To install Homebrew you can follow the steps from the Homebrew website:

or type this in your terminal:

export HOMEBREW_BREW_GIT_REMOTE="..."  # put your Git mirror of Homebrew/brew here
export HOMEBREW_CORE_GIT_REMOTE="..." # put your Git mirror of Homebrew/homebrew-core here
/bin/bash -c "$(curl -fsSL

--

--