0.1.0 • Published 7 years ago
react-npm-publish v0.1.0
react-npm-publish
This project is based on create-react-app, in this project you can create your own UI library, and publish it to NPM.
Getting Started
Install dependencies
yarn install
or
npm installStart development server
yarn start
or
npm startThen you can run this project in your browser http://localhost:3000
Build library
yarn run build
or
npm run buildPublish library to NPM
npm publishExample Usage
npm install my-buttonimport { MyButton } from "my-button";
<MyButton
type={"default"}
text={"this is a examle component"}
onClick={()=>{console.log("clicked")}}
/>0.1.0
7 years ago