my-react-component-lib
v2.1.0
Published
A React component library, built with Storybook and Vite.
Downloads
14
Maintainers
Readme
my-react-component-lib
安装
npm install my-component-library
使用
- 在入口文件中引入样式
import 'my-component-library/dist/index.css';
- 在组件中使用
import React from 'react';
import { Button } from 'my-component-library';
const App = () => (
<div>
<Button type="primary" onClick={() => console.log('Hello world!')}>
Primary Button
</Button>
</div>
);
export default App;