React is an open-source front-end Javascript library used for building user interfaces, especially Single Page Applications(SPAs). React holds the View layer of the MVC(Model-View-Controller) architecture. Provided is the tutorial for creating an application using Create React App(CRA) Build and Development tool :
1.1 Navigating nodejs.org for installing Javascript runtime environment
1.2 Next it requires following the Operating System specific instructions by navigating nodejs.org/en/download link, it requires at first installing nvm(node version manager) to manage the versions of node.
1.3 Next it requires checking the installed and default nodejs version using nvm ls command
2.1 Next for creating and instantiating the app using create-react-app below command(npx create-react-app app-name) is to be used while replacing the name of the app with any required choice
2.2 Next it requires granting permission for proceeding further with creating the react app, while it can be seen the highlighted message below that create-react-app is deperecated. It is deprecated since Feb 2025.
2.3 Next it requires changing the directory or navigating the directory where the app is installed by following the below instruction as in below image and running the npm run start command to run the application execution script
2.4 Next development server success message can be seen with link to open the app on localhost as well on the connected network
2.5 Finally the success output can be seen by navigating the localhost:3000 link or if the port number 3000 is already in use then the highlighted link as in step 2.4 is to be followed








No comments:
Post a Comment