Contents
Using create-react-app
create your first application
Precondition
- Node.js version>=6
- npm version>=5.2
Create React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in React.
It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. You’ll need to have Node >= 6 and npm >= 5.2 on your machine. To create a project, run:
npx create-react-app my-app cd my-app npm start
Open the newly created application by using Webstorm IDE
Running the application by using npm run start
For now, we have successfully finished creating a new React application.
Source code
Using create-react-app
create your first application
Precondition
- Node.js version>=6
- npm version>=5.2
Create React App
Create React App is a comfortable environment for learning React, and is the best way to start building a new single-page application in React.
It sets up your development environment so that you can use the latest JavaScript features, provides a nice developer experience, and optimizes your app for production. You’ll need to have Node >= 6 and npm >= 5.2 on your machine. To create a project, run:
npx create-react-app my-app cd my-app npm start
Open the new created application by using Webstorm IDE
Running the application by using npm run start
For now, we have successfully finished creating a new React application.