21cake 公司组件库
npm install super21cake
yarn add super21cake
import { Button, DatePicker } from 'antd';
const App = () => (
<>
<Button type="primary">PRESS ME</Button>
<DatePicker placeholder="select date" />
</>
);
And import style manually:
import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
antd
is written in TypeScript with complete definitions, check Use in TypeScript to get started.