Practical 4
Practical 4
It is easy to create a dynamic application in React because it requires less coding and offers
more functionality. It is used by big MNCs and fresh new startups.
Features of React:
Install Node.js installer for Windows. Once downloaded open NodeJS without disturbing
other settings, and click on the Next button until it’s completely installed.
Step 2: Open the command prompt to check whether it is completely installed or not type the
command –>
node -v
If the installation went well it will give you the version you have installed.
Now, Check whether the node package manager is installed completely or not, to check npm is
installed or not you have to type the command:
npm -v It will give you npm version which is installed on your device.
Installation will take a few seconds It will globally install the react app for you.
version 4.0.3
If everything goes well it will give you the installed version of the React app.
Step 4: Now Create a new folder where you want to make your react app using the below
command:
Due to npm naming restrictions, names can no longer contain capital letters, thus type your app’s
name in lowercase.
Practical: 4
Aim: Installation and create a new React App from Scratch
Step 6: Now open the IDE of your choice for Visual Studio code and open the folder where you
have installed the react app new folder inside the folder you will see your app’s name reactapp (In
our example). Use the terminal and move inside your app name folder.
npm start
Practical: 4
Aim: Installation and create a new React App from Scratch
Once you run the above command a new tab will open in your browser showing the React
logo as shown below: