npx create-react-app my-app --template typescript
npm install typescript @types/node @types/react @types/react-dom @types/jest
npm install @types/react --save
安装 json-serve
yarn add json-server
package.json里配置
"server": "json-server --watch ./__json_server_mock__/db.json --port 3030"