```js // /my-addon/register.js import React from 'react'; import { useStorybookApi } from '@storybook/api'; export const Panel = () => { const state = useStorybookApi(); return
do something with storybook's api
; }; ```