第一步:创建React项目:(确保已安装node)
$ npm install -g create-react-app
$ create-react-app myapp
$ cd myapp
$ npm start
$ npm run build(本地打包,可以用外网访问)
第二步:引入Ant Mobile:
修改Index.html文件
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />(修改)
<script src="https://as.alipayobjects.com/g/component/fastclick/1.0.6/fastclick.js"></script>
<script>
if ('addEventListener'<