React is Javascript Library for building user interfaces
React is used to build single-page applications
React allows us to create reusable UI components
Create React App
Open your terminal in the directory you would like to create your application.
Run this command to create a React application named my-react-app:
npx create-react-app my-react-app
create-react-app will setup everything you need to run a React Application.
Run the React application
Run this command to execute the React application my-react-app:
npm start
A new browser window will pop up with your newly created React App. If not, open your browser and type localhost:3000 in the address bar.
The result:
No comments:
Post a Comment