reactUI组件库

妖狐艹你老母 2022-09-11 12:27 302阅读 0赞

reactUI组件库(Ant)

1.1安装

  1. yarn add antd
  2. npm install antd-mobile --save//web端使用

1.2导入

在app.js中导入js

  1. import { Button } from 'antd';

在index.js中导入css

  1. import 'antd/dist/antd.css'

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

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

发表评论

表情:
评论列表 (有 0 条评论,302人围观)

还没有评论,来说两句吧...

相关阅读

    相关 uniapp uni-ui

    1、根据文档选择对应组件 2、进入页面后点击 ![在这里插入图片描述][2020050715221344.png]3、根据文档步骤在项目中注册和引入组件 [文档][Li