项目作者: allan2coder

项目描述 :
Create your own UI component library based on React.
高级语言: JavaScript
项目地址: git://github.com/allan2coder/create-react-library.git
创建时间: 2018-07-30T03:58:42Z
项目社区:https://github.com/allan2coder/create-react-library

开源协议:MIT License

下载


react-to-npm

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

  1. yarn install
  2. or
  3. npm install

Start development server

  1. yarn start
  2. or
  3. npm start

Then you can run this project in your browser http://localhost:3000

Build library

  1. yarn run build
  2. or
  3. npm run build

Publish library to NPM

  1. npm publish

Example Usage

  1. npm install react-to-npm
  1. import { MyButton } from "react-to-npm";
  2. <MyButton
  3. type="default"
  4. text="this is a examle component"
  5. onClick={()=>{console.log("clicked")}}
  6. />

License

MIT