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.
#
ParameterswithStory
accepts a component with the story
in its props:
#
Usage#
Basic exampleWrap the component where you want to keep the story
in sync in withStory
: