react-npm-component-starter

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i react-npm-component-starter

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

5.19 kB

Total Files

7

Last publish

Collaborators

  • kris.luo