So I bought the new MacBook 2020 from my longtime savings this year. I was a windows user for 12 years and still use windows in my office. Switching to mac required me to juggle through resources and a lot of googling. So this might be helpful to those who have newly switched to mac.
Roadway to your first-react-app
- Install Homebrew
Homebrew is a package manager for macOS.You can download it simply from https://brew.sh/.

Open the terminal from applications/utilities


Copy and paste the command below:
/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"


2.Install git
brew install git

Since I have already installed git, it is showing me the above message. After you have installed git. check the git version.
git — version

3.Install node
brew install node

Since I have already installed node it gives me the above message. After installing you can check the node version.

3.Create react app
To install react app you need node and npm.
Node.js is an open-source, cross-platform runtime environment for developing server-side and networking applications. When you install node.js,npm gets installed automatically. So check both versions before you install create-react-app.

Now you are good to go with your react -app
Navigate to the folder where you want to install your react app.Now give the below command
npx create-react-app my-app
npx is a package runner tool that comes with npm.
create-react-app creates the frontend build pipeline.
my-app is the name of the app. you can give any name you want without spaces.

You will get something like the above picture.Do the following.
cd my-app & npm start
Voila! you have your react app running.

You can refer https://reactjs.org/ to get your own react app.
Thanks for your time and hopefully it will be useful to you. :)