美文网首页
初级构建项目 个人笔记 不做文档使用

初级构建项目 个人笔记 不做文档使用

作者: aibinMr | 来源:发表于2019-04-29 23:28 被阅读0次

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

相关文章

网友评论

      本文标题:初级构建项目 个人笔记 不做文档使用

      本文链接:https://www.haomeiwen.com/subject/dqypnqtx.html