F:\ReactSpace>npx create-react-app my-app
Creating a new React app in F:\ReactSpace\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and react-scripts...
+ react-dom@16.8.6
+ react-scripts@3.0.0
+ react@16.8.6
added 1397 packages from 726 contributors and audited 878612 packages in 236.737s
found 0 vulnerabilities
Initialized a git repository.
Success! Created my-app at F:\ReactSpace\my-app
Inside that directory, you can run several commands:
npm start
Starts the development server.
npm run build
Bundles the app into static files for production.
npm test
Starts the test runner.
npm run eject
Removes this tool and copies build dependencies, configuration files
and scripts into the app directory. If you do this, you can’t go back!
We suggest that you begin by typing:
cd my-app
npm start
Happy hacking!
https://reacttraining.com/react-router/web/guides/quick-start
npm install react-router-dom
网友评论