React

ReactJS, is an open-source JavaScript library developed by Facebook. It is primarily used for building user interfaces (UIs) or single-page applications where the content can be updated dynamically without requiring a full page reload. React is often used in conjunction with other libraries and frameworks to create complex and interactive web applications.

Start a New React Project

If you want to create a new application or a new website completely with react. Just pressWin + R or open cmd on your pc and typenode -v you'll see a verison like v18.XX.1 if not , install from here. After finishing the installation take an empty folder in your pc and name it as react for identification and click on path which is like c:/react and type cmd and press enter, you will see a cmd (command prompt) window and enter a command npx create-react-app YourAppName , shown as below


Microsoft Windows [Version 10.0.22621.2283]
(c) Microsoft Corporation. All rights reserved.

C:/React/ProjectFolder> npx create-react-app FirstApp

After the installation of apk , The Command Say's App installed successfully , Happy Hacking :).

Open your project folder with vs code and open terminal from Terminal > New Terminal and you'll see a terminal pops up from the bottom which says C:/React/ProjectFolderFirstApp> Enter npm start like shown below


Microsoft Windows [Version 10.0.22621.2283]
(c) Microsoft Corporation. All rights reserved.

C:/React/ProjectFolder> npm start

Now your project starts with the server localhost:3000 and if you need any changes in the code just edit on app.js which refelects the changes immediately without loading the page

Wanna Know How to create a component

Next