storybook-addon-state
A storybook addon to give you access to store/retrieve arbitrary data. Similar to knobs
this doesn't add any additional React wrappers to the story, so any other addons used (prop-types
, jsx
) aren't effected.
Install
yarn add storybook-addon-state
Usage
import storiesOf from '@storybook/react';import useState from 'storybook-addon-state'; ;