1.0.0-beta • Published 4 years ago

react-mobx-routing-modal v1.0.0-beta

Weekly downloads
4
License
MIT
Repository
github
Last release
4 years ago

react-mobx-routing-modal

NPM downloads license
Cool pop-ups related to URL with React 16.3+ and Mobx 3+.

Installation

npm

npm i react-mobx-routing-modal

yarn

yarn add react-mobx-routing-modal

Using

All modals should be placed into Modals.

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

export default () => (
  <>
    <OpenModal id='test'>Open</OpenModal>
    <Modals className={theme.modals}>
      <RouterModal id='test' delay={300} classNames={theme}>
        Test modal
      </RouterModal>
    </Modals>
  </>
)

Issues

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


stars watchers