storybook/lib/channel-postmessage
Tom Coleman 225c4be4ac Revert "add scancode file and fix declared type for channel"
This reverts commit 9cab57050542c379ea42b29aeab4e46c5746adb9.
2019-01-10 12:29:19 +11:00
..
2019-01-09 18:48:10 +08:00
2018-07-31 19:34:05 +03:00

Storybook PostMessage Channel

Storybook PostMessage Channel is a channel for Storybook that can be used when the Storybook Renderer runs inside an iframe or a child window. A channel can be created using the createChannel function.

import createChannel from '@storybook/channel-postmessage';

const channel = createChannel({ key: 'postmsg-key' });

For more information visit: storybook.js.org