Creating a new React JS app is a simple process that require very easy steps. here I am explaining you how to step by step create a new React JS app:
- Before you start, you need to install Node.js on your system. you can download the Node.js from the official website (https://nodejs.org/en/). Once you have installed Node.js, you can use the Node Package Manager (npm) to install the necessary dependencies.
- Open your terminal or command prompt and go to the directory where you want to create/setup your React app.
- You need to type the following command to create a new React app using the create-react-app tool:
npx create-react-app my-app
here “my-app” with the name of your app you can choose as per your requirement. I have used “my-app” to “agorainfo”. This will create a new React app with all the necessary files and dependencies.
4. Once all the necessary package installed, go to the your app directory with :
cd my-app
I have used “my-app” to “agorainfo”.
npm start
It will start a development server and open your app in your default browser.
Congratulations! You have successfully created a new React app. now you can edit the files in the “src” directory to modify your app and add new components, and functionality.
Hello, Welcome to webdeveloperindia.in. I am a full-stack web developer. Email – [email protected] | Skype – azaruddin23. I have knowledge of PHP, Laravel, Magento 1/2, Codeigniter, WordPress, Joomla, Shopify, Git, Bitbuket, jQuery, Ajax, Javascript and ReactJS.
such a helpful post.