0.1.1 • Published 4 years ago
react-custom-component-button2 v0.1.1
react-custom-component-button2
A custom component button2 used by react, which is a demo project.
compile:
- git clone https://github.com/haomiao/react-custom-component-button2.git
- cd react-custom-component-button2
- npm install
- npm run build
the dist dir is the packed objects.
update the packed objects to npm:
- cd react-custom-component-button2
- npm login
- npm publish
How to use the component in your project:
- npm i -D react-custom-component-button2
- import {Button2} from 'react-custom-component-button2';
- where to use the component, use tag: 'Button2'