本地创建文件夹driving-test
,及子文件夹api
在api
目录下npm init egg --type=ts
,选ts版本。再npm i
(启动npm run dev)
回到driving-test
文件夹,npx create-react-app license --template typescript
cd license
yarn add axios lodash redux react-redux react-router react-router-dom
yarn add -D node-sass @types/axios @types/lodash @types/redux @types/react-redux @types/react-router @types/react-router-dom