1.2.0 • Published 4 years ago

@ejp/react-modal v1.2.0

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

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.