create-react-app 工具初始化react项目

 

create-react-app 工具初始化react项目

https://create-react-app.dev/docs/getting-started

npx
npx create-react-app my-app

npm 
npm init react-app my-app

Yarn
yarn create react-app my-app

----------------

Selecting a template

npx create-react-app my-app --template [template-name]

npx create-react-app my-app --template typescript

yarn create react-app my-app  --template typescript

 

安装 less

yarn add less less-loader

安装 react-router-dom

yarn add react-router-dom localforage match-sorter sort-by

yarn add lodash

yarn add mobx mobx-react-lite

yarn add query-string

yarn add qrcode.react

yarn add lodash

yarn add axios

 

posted @ 2023-02-14 13:48  lovleo  阅读(22)  评论(0编辑  收藏  举报