1.0.0 • Published 1 year ago

react-npm-component-starter v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

react-npm-component-starter

Made with create-react-library

NPM JavaScript Style Guide

Install

npm install --save react-npm-component-starter

Usage

import React, { Component } from 'react'

import MyComponent from 'react-npm-component-starter'
import 'react-npm-component-starter/dist/index.css'

class Example extends Component {
  render() {
    return <MyComponent />
  }
}

License

MIT ©

基于这个脚手架实现组件库发布https://github.com/transitive-bullshit/create-react-library

本地引用antd组件库注意再package.json文件的peerDependencies定义antd

项目启动

需两个窗口分别执行以下命令 npm start # runs rollup with watch flag 运行example文件夹 npm start # runs create-react-app dev server