Creating a ReactJS project
Now that you have ReactJS installed, you can create a new react project directory by running:
npx create-react-app my-react-project
This will create a new project directory named “my-react-project” that will look something like this:
You can then open a terminal window inside of this react project by running:
cd my-react-project
Once you’re inside a terminal window inside of this react project, you can finally run the following command to start a development server on “localhost:3000”:
npm start
How to Install ReactJS on MacOS?
ReactJS is a free and open-source front-end JavaScript library created by Facebook in 2013. ReactJS is a User Interface (UI) library, and it is used for building and manipulating UI components.
In this article, we will be walking you through the full ReactJS installation process on MacOS in detail. Here we will be covering:
- NodeJS and NPM installation.
- ReactJS library installation.
- Creating a ReactJS project.