reactUI组件库

reactUI组件库(Ant)

1.1安装
yarn add antd
npm install antd-mobile --save//web端使用
1.2导入

在app.js中导入js

import { Button } from 'antd';

在index.js中导入css

import 'antd/dist/antd.css'

接下来就可以在所有的组件中使用Button组件了

  <Button onClick={this.hanlde}>+1</Button>//具体属性看文档

你可能感兴趣的:(React,react.js)