0.1.1 • Published 2 years ago
yk-react-modal v0.1.1
Simple Modal React Component
A library of React components created using create-react-app
.
Installation
Run the following command:
npm install yk-react-modal
Usage
import { SimpleModal } from "yk-react-modal";
function Example() {
const [showModal, setShowModal] = useState(false);
return (
<SimpleModal
show={showModal}
message="Employee Created!"
onClose={() => setShowModal(false)}
/>
);
}