Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vemc-modal) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
modal
Description
A modal pluggin for react using create-react-app.
Installation
Run the following command:
npm install pop-up-modal
How to use ?
1 - Import the pluggin :
import {Modal} from "pop-up-modal"
2 - Use this state :
const [displayModal, setDisplayModal] = useState(false)
3 - Return the modal :
<Modal
showModal={displayModal}
hideModal={()=>setDisplayModal(false)}
/>