@21epub/epub-ruler 中文文档教程
epub-ruler
使用 create-storybook-react-library
< img src="https://img.shields.io/codecov/c/github/21epub/epub-ruler" alt="Codecov">
Intro
这是一个用于 React 的组件。
Feature
- [x] Easy-to-use
- [x] Typescript Support
- [x] Storybook UI component
Install
npm install --save epub-ruler
Usage
import React, { Component } from 'react'
import MyComponent from 'epub-ruler'
import 'epub-ruler/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
有关详细信息:请参阅示例
Developing and running on localhost
首先安装依赖项,然后为故事书开发人员安装 peerDeps:
npm install
npm run install-peers
在热模块重新加载模式下运行示例:
npm start # or npm run storybook
创建捆绑库模块构建:
npm run build
Testing
运行单元测试:
npm test
License
MIT © 21epub
epub-ruler
Made with create-storybook-react-library
Intro
This is a component for react.
Feature
- [x] Easy-to-use
- [x] Typescript Support
- [x] Storybook UI component
Install
npm install --save epub-ruler
Usage
import React, { Component } from 'react'
import MyComponent from 'epub-ruler'
import 'epub-ruler/dist/index.css'
class Example extends Component {
render() {
return <MyComponent />
}
}
For Details: See Example
Developing and running on localhost
First install dependencies and then install peerDeps for storybook dev:
npm install
npm run install-peers
To run Example in hot module reloading mode:
npm start # or npm run storybook
To create a bundle library module build:
npm run build
Testing
To run unit tests:
npm test
License
MIT © 21epub