@ejp/react-modal
v1.2.0
Published
`yarn add @ejp/react-modal`
Downloads
6
Readme
React Modal
yarn add @ejp/react-modal
A small utility hook to use Axios in your React components, with a simple and familiar API.
USAGE
import Modal from '@ejp/react-modal';
...
function ModalWithText() {
return (
<Modal title="Open Modal">
<p>my awesome content</p>
</Modal>
);
}
function ModalWithImage() {
return (
<Modal title="Open Image Modal" image>
<img src="https://placeimg.com/700/700/nature" alt="" />
</Modal>
);
}
// TODO
Project was bootstraped with the excellent TSDX framework.