react-mobx-routing-modal
v1.0.0-beta
Published
Pop-ups related to URL
Downloads
1
Maintainers
Readme
react-mobx-routing-modal
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