react-npm-component-starter
v1.0.0
Published
Made with create-react-library
Downloads
1
Readme
react-npm-component-starter
Made with create-react-library
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
基于这个脚手架实现组件库发布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