viskan-deku-popup

3.0.0 • Public • Published

viskan-deku-popup Build Status

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};

Package Sidebar

Install

npm i viskan-deku-popup

Weekly Downloads

1

Version

3.0.0

License

none

Last publish

Collaborators

  • gillstrom
  • alonalon
  • anton-johansson
  • henrikpeszlen