/react-mobx-modal

Popups with React and MobX

Primary LanguageJavaScriptMIT LicenseMIT

react-mobx-modal

NPM downloads license
Cool popups with React 16.3 and Mobx 3 and more.

Installation

npm

npm i react-mobx-modal

yarn

yarn add react-mobx-modal

Using

All modals should be placed into Modals.

import Modal, {Modals} from 'react-mobx-modal'
import theme from 'react-mobx-modal/theme/default.module.scss'

export default () => (
  <Modals className={theme.modals}>
    <Modal delay={300} classNames={theme}>
      Test modal
    </Modal>
  </Modals>
)

Issues

If you find a bug, please file an issue on GitHub
issues


stars watchers