In this short article, we would like to show how in simple way create React application from command line using
Quick solution (run the command):
npx create-react-app my-new-app
my-new-app is the project name and directory that will be created.
Note: be sure the React is installed or install it with
npm install -g react.
After application is created, we can run it using:
# change directory to our new application cd my-new-app # start application with npm npm start
yarn package manager
We can use yarn package manager, too:
yarn create react-app my-new-app cd my-new-app yarn start