3 Star 6 Fork 2

前端一锅煮 / react_mob

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

React 移动端项目

  1. react17、create-react-app 脚手架、antd-mobile 移动组件库、兼容 hooks 和 ts 写法

  2. axios 请求 proxy 代理跨域

  3. 基础配置放在 .env .env.development .env.production 三个文件中

  4. flex 布局,不使用 rem

  5. fastclick 插件处理 300ms 延迟问题

  6. 自定义 eslint 配置规则

快速开始

yarn install

yarn dev // 本地开发

yarn build // 打包上线

yarn test

yarn analyze // 分析 Bundle () 大小

代码说明

  1. 全局变量

    • $axios RESTful 请求
    • $config 全局公共变量
    • $cookie 全局 cookie 操作方法
  2. 本地缓存 localStorage

注意事项

  1. less 版本需要在 8 以下:yarn add less-loader@7.3.0 -D

  2. tsconfig.json 加 "noImplicitAny": false, 解决引入非 ts 文件报错

版本

react17.0.2 react-router-dom5.2.0 redux4.1.0 react-redux7.2.4 antd-mobile2.3.4 axios0.21.1 webpack4 babel7

参考文档

React17

react-router-dom

Create React App

redux

react-redux

antd-mobile

react-intl-universal

空文件

简介

create-react-app 移动端项目模板,redux、saga、ts、hooks 展开 收起
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/cjm0/react_mob.git
git@gitee.com:cjm0/react_mob.git
cjm0
react_mob
react_mob
master

搜索帮助