# @djoudi21/react-modal-oc

> React Modal is a lightweight npm package that provides a modal component for displaying congratulatory messages in React applications.

Latest version **0.2.4** (published 2023-07-05) · 0 weekly downloads

## Install

```sh
npm install @djoudi21/react-modal-oc
pnpm add @djoudi21/react-modal-oc
yarn add @djoudi21/react-modal-oc
bun add @djoudi21/react-modal-oc
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.4 |
| Published | 2023-07-05 |
| First published | 2023-06-09 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | djoudi21 |

## Links

- npm: https://www.npmjs.com/package/@djoudi21/react-modal-oc
- Repository: https://github.com/Djoudi21/modal-react-component
- Homepage: https://github.com/Djoudi21/modal-react-component#readme
- Issues: https://github.com/Djoudi21/modal-react-component/issues
- npm.io page: https://npm.io/package/@djoudi21/react-modal-oc

## Recent versions

- 0.2.4 (latest) — 2023-07-05
- 0.2.3 — 2023-06-11
- 0.2.2 — 2023-06-11
- 0.2.1 — 2023-06-10
- 0.2.0 — 2023-06-10
- 0.1.9 — 2023-06-10
- 0.1.8 — 2023-06-10
- 0.1.7 — 2023-06-09
- 0.1.6 — 2023-06-09
- 0.1.5 — 2023-06-09
- 0.1.4 — 2023-06-09
- 0.1.3 — 2023-06-09
- 0.1.2 — 2023-06-09
- 0.1.1 — 2023-06-09

## README

# React Modal npm Package

React Modal is a lightweight npm package that provides a modal component for displaying congratulatory messages in React applications.

## Installation

To install React Modal, you can use npm or yarn:

npm install @djoudi21/react-modal-oc

or

yarn install @djoudi21/react-modal-oc

## Usage

Import the Modal component in your React application:

```js
import React from "react";
import Modal from "react-modal-component";

function App() {
    const [modalOpen, setModalOpen] = React.useState(false);

    const closeModal = () => {
        setModalOpen(false);
    };

    return (
        <div>
            <button onClick={() => setModalOpen(true)}>Open Modal</button>
            <Modal display={modalOpen} closeModal={closeModal} />
        </div>
    );
}

export default App;
```

The Modal component accepts two props:

- 'display' (boolean): Flag indicating whether the modal should be displayed or hidden.
- 'closeModal' (function): Callback function to close the modal.

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