How To Create and Deploy a React App
To Create React App, you need to check if node is installed and up to date. Open the command prompt or any terminal and run the command below to check if node is installed;
Type the command and press enter;
node -v
From the picture below, I already have node installed which is version 16.16.0
Note:
If you don’t have node installed, go to node website at https://nodejs.org/en/
At the point of writing this post, the latest version of node is v16.17.1
If you are on windows, go ahead and click on the button below to download node;
After downloading, head over and install it on your system
Congrats, you now have node installed.
Now, Install any code editor of your choice preferably Visual Studio Code.
Bravo, you’re now set to creating a React App
Now, open your VScode
Click on Terminal,
then New Terminal;
In the Terminal window that displays, Type the command below and press enter;
npx create-react-app my_react_app
//Note: "my_react_app" as written above is the folder for my react project. So, you can choose any name of your choice (most be in lower case)
Note: Make sure you have a strong internet connection
Give it a few minutes to download the required packages for your React Project.