my-react-component-lib
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

my-react-component-lib

安装

npm install my-component-library

使用

  1. 在入口文件中引入样式
import 'my-component-library/dist/index.css';
  1. 在组件中使用
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;

Package Sidebar

Install

npm i my-react-component-lib

Weekly Downloads

4

Version

2.1.0

License

none

Unpacked Size

4.61 kB

Total Files

11

Last publish

Collaborators

  • knight174