react-simple-modal-ts
v2.1.0
Published
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![Travis](https://img.shields.io/travis/bigjujube/react-simple-modal.svg)](https://travis-ci.org/bigjujube/react-simple-modal) [
Downloads
1
Readme
react-simple-modal-ts
A simple Modal Component for react
Usage
npm install react-simple-modal-ts --save
Start coding! package.json
and entry files are already set up for you, so don't worry about linking to your main file, typings, etc. Just keep those files with the same name.
Features
Importing library
You can import the generated bundle to use the whole library generated by this starter:
import ReactSimpleModal from 'react-simple-modal-ts'
Additionally, you can import the transpiled modules from dist/lib
in case you have a modular library:
import something from 'react-simple-modal-ts/dist/lib/something'
NPM scripts
npm t
: Run test suitenpm start
: Runnpm run build
in watch modenpm run test:watch
: Run test suite in interactive watch modenpm run test:prod
: Run linting and generate coveragenpm run build
: Generate bundles and typings, create docsnpm run lint
: Lints codenpm run commit
: Commit using conventional commit style (husky will tell you to use it if you haven't :wink:)
Setup steps
From now on, you'll need to use npm run commit
, which is a convenient way to create conventional commits.