modal-react-vesper
v0.1.3
Published
### Import the package in your project
Readme
Instructions to use this package
Import the package in your project
import { Modal } from "modal-react-vesper";Define a state and a function to modify it
const [isShowing, setIsShowing] = useState(false);Call the component where you want it without forgetting to set his attributes
<Modal isShowing={isShowing} close={() => setIsShowing(false)} text="Your text"/>You can set the isShowing state whenever you want to display or hide the modal
