学习React Hooks和TypeScript实现仿Antd的react UI组件库,并经过此组件库在create-react-app的基础上实现了一套简单的应用,下方连接css
npm install rockui
yarn add rockui
复制代码
import { Button, Icon } from "rockui";
const App = () => (
<>
<Button
size={ButtonSize.Small}
autoFocus
onClick={e => {
e.preventDefault();
}}
className="btn"
>
hello
</Button>
<Icon icon="coffee" theme="warning" size="2x" />
</>
);
复制代码
And import style manually:ide
import "rockui/dist/rockui.css";
复制代码
$ git clone https://github.com/s2265681/rockui.git
$ cd rockui
$ npm install
$ npm start
$ 修改注释 src/index.tsx 组件发布 >>> 页面展现
复制代码
欢迎一块儿学习,提issue,一块儿merge新功能。svg