美文网首页
(六)react使用ant Design

(六)react使用ant Design

作者: 前端来入坑 | 来源:发表于2019-12-07 16:43 被阅读0次
    • 安装
    $ npm install antd --save
    
    • 全局引入样式
    import 'antd/dist/antd.css';
    
    • 引入组件
    import Button from 'antd/es/button';
    
    • 使用组件
    <Button type="primary">Button</Button>
    

    相关文章

      网友评论

          本文标题:(六)react使用ant Design

          本文链接:https://www.haomeiwen.com/subject/jngsgctx.html