0.1.6 • Published 6 years ago
@gitpad/gmodal v0.1.6
GModal
A modal layer for React 16
Install
npm install @gitpad/gmodal
Usage
import GModal from '@gitpad/gmodal';
import '@gitpad/gmodal/dist/gmodal.css';
// ...
<GModal show>
<div className="popup">A popup window</div>
</GModal>
// ...
How does it work?
It's powered by React portal in React 16, so it's only compatible with React 16