1.0.6 • Published 5 years ago

react-scenographic v1.0.6

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

react-scenographic

A very lightweight react-modal. npm

To install:

npm install --save react-scenographic

To use:

import { useModal, Modal } from 'react-scenographic';

const Container = () => {
  const [isShowing, toggle] = useModal();
  
  return (
    <React.Fragment>
      <button onClick={toggle}>show modal</button>
      <Modal header={header} footer={footer} isShowing={isShowing} toggle={toggle}>
        {content}
      </Modal>
    </React.Fragment>
  );
};

Authors note:

I made react-scenograph because I wanted to learn about deploying to NPM. I plan on maintaining and adding to it. If you like it, use it, or found this repo helpful in any way I would greatly appreciate your star. Happy coding!

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago