info Direct dependencies
├─ @types/jest@24.0.18
├─ @types/node@12.7.2
├─ @types/react-dom@16.9.0
├─ @types/react@16.9.2
├─ react-dom@16.9.0
├─ react-scripts@3.1.1
├─ react@16.9.0
└─ typescript@3.6.2
然后是一些总结性的信息:
✨ Done in 30.76s.
We detected TypeScript in your project (src/App.test.tsx) and created a tsconfig.json file for you.
Your tsconfig.json has been populated with default values.
Initialized a git repository.
Success! Created learn-react at /Users/banxi/Workspace/learn-react
Inside that directory, you can run several commands:
yarn start
Starts the development server.
yarn build
Bundles the app into static files for production.
yarn test
Starts the test runner.
yarn 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 learn-react
yarn start
Happy hacking!
✨ Done in 89.60s.
创建项目配置环境
yarn create react-app learn-react --typescript
项目创建完成之后,显示直接依赖如下:然后是一些总结性的信息:
安装 Chrome 扩展: React Developer Tool