# react-mega-modal

> A simple modal component for React

Latest version **0.1.4** (published 2019-03-22) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install react-mega-modal
pnpm add react-mega-modal
yarn add react-mega-modal
bun add react-mega-modal
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2019-03-22 |
| First published | 2019-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Steve Burtenshaw |
| Maintainers | stphnnnn |
| Keywords | react, modal, popup, overlay |

## Links

- npm: https://www.npmjs.com/package/react-mega-modal
- Repository: https://github.com/stphnnnn/react-mega-modal
- Homepage: https://github.com/stphnnnn/react-mega-modal#readme
- Issues: https://github.com/stphnnnn/react-mega-modal/issues
- npm.io page: https://npm.io/package/react-mega-modal

## Dependencies (1)

- [prop-types](https://npm.io/package/prop-types.md) 15.7.2

## Alternatives

- [react-native-root-siblings](https://npm.io/package/react-native-root-siblings.md) — 102.9K weekly downloads
- [post-robot](https://npm.io/package/post-robot.md) — 93.7K weekly downloads
- [@praxisui/dialog](https://npm.io/package/@praxisui/dialog.md) — 2.0K weekly downloads
- [easy-toggle-state](https://npm.io/package/easy-toggle-state.md) — 350 weekly downloads
- [ngx-lightbox-evp](https://npm.io/package/ngx-lightbox-evp.md) — 19 weekly downloads

## Recent versions

- 0.1.4 (latest) — 2019-03-22
- 0.1.3 — 2019-03-22
- 0.1.2 — 2019-03-18
- 0.1.1 — 2019-03-16
- 0.1.0 — 2019-03-16

## README

# ✨ 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`

2. Then use it in your react app:

```jsx
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>
);
```

---
_Source: https://npm.io/package/react-mega-modal · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
