viskan-deku-popup
3.0.0 • Public • Published viskan-deku-popup
Popup/modal component for deku
Install
$ npm install --save viskan-deku-popup
Usage
import Popup from 'viskan-deku-popup';
const openPopup = (setState) => {
setState({open: true});
};
const render = ({state}, setState) => {
const {open} = state;
return (
<Button onClick={openPopup(setState)}>Open popup!</Button>
<Popup open={open}>
<h1>Hello world!</h1>
</Popup>
);
};
export default {render};
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
3.0.0 | 4 | latest |
Version History
Version | Downloads (Last 7 Days) | Published |
---|
3.0.0 | 4 | |
2.0.1 | 0 | |
2.0.0 | 1 | |
1.2.1 | 0 | |
Package Sidebar
Install
Weekly Downloads