modale-hind08

0.1.11 • Public • Published

modale library

A modal with a message confirmation: "Employee Created!"

Installation

Run the following command: npm i modale-hind08

Example of use

import { Fragment } from "react"
import { Modale } from "modale-hind08"

function Home() {
    const [displayModal, setDisplayModal] = useState(false)
    return (
        <Fragment>
             <button onClick={() => setDisplayModal(true)}>Click here to show modal!</button>
            {displayModal && <Modale closeModal={() => setDisplayModal(false)} />}
        </Fragment>
    )
}

export default Home;

Readme

Keywords

none

Package Sidebar

Install

npm i modale-hind08

Weekly Downloads

1

Version

0.1.11

License

none

Unpacked Size

4.61 kB

Total Files

6

Last publish

Collaborators

  • hind08