storybook/docs/snippets/common/storybook-addons-api-usestorybookstate.js.mdx
2020-08-11 01:11:41 +01:00

9 lines
172 B
Plaintext

```js
// .storybook/my-addon/register.js
export const Panel = () => {
const state = useStorybookState();
return <div>do something with storybook's state</div>;
};
```