storybook/docs/snippets/common/storybook-addons-api-usestorybookstate.js.mdx
2020-10-07 12:23:34 +08: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>;
};
```