withStory#
HOC (Higher-Order Component) that wraps a component/page where a story is loaded, and makes sure to that keep that story in sync with the Visual Editor.
Parameters#
withStory accepts a component with the story in its props:
Usage#
Basic example#
Wrap the component where you want to keep the story in sync in withStory: