0.1.4 • Published 5 years ago

react-mega-modal v0.1.4

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

✨ React Mega Modal

React Mega Modal is a simple modal component for React.

Basic Usage

  1. The easiest way to use react-mega-modal is to install it from npm:

npm i react-mega-modal

  1. Then use it in your react app:
import React from 'react';
import Modal from 'react-mega-modal';

const App = () => (
  <Modal
    modal={({ closeModal }) => (
      <div>
        <h1>This is the modal content</h1>
        <button onClick={closeModal}>Close</button>
      </div>
    )}
  >
    {({ openModal }) => <button onClick={openModal}>Open</button>}
  </Modal>
);
0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago