New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

simple-react-modal-wj

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-react-modal-wj

A simple react modal

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

simple-react-modal-wj

A Simple modal

NPM JavaScript Style Guide

Install

npm install --save simple-react-modal-wj

Usage Example

import { Modal } from 'simple-react-modal-wj'

function EnclosingFunction() {
  const [openModal, setOpenModal] = useState(false)
  return (
    <button onclick={setOpenModal}>Click to open modal 😉</button>
    <Modal
      isOpen={openModal}
      onClose={() => {
        setOpenModal(false)
        return true
      }}
    />
  )
}

Options

You can use those props to add specific content through the modal :

 title={here you can add a title}
subTitle={here you can add a subtitle near the title}
content={here yu can add your main content}

License

MIT © WillemJou

Keywords

react

FAQs

Package last updated on 05 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts