@21epub/epub-app-lib

Made with create-storybook-react-library

Usage no npm install needed!

<script type="module">
  import 21epubEpubAppLib from 'https://cdn.skypack.dev/@21epub/epub-app-lib';
</script>

README

epub-app-lib

Made with create-storybook-react-library

NPM JavaScript Style Guide Build Status Codecov

Intro

This is a component for react.

Feature

  • Easy-to-use
  • Typescript Support
  • Storybook UI component

Install

npm install --save epub-app-lib

Usage

import React, { Component } from 'react';

import MyComponent from 'epub-app-lib';
import 'epub-app-lib/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 © icey0126