$ cnpm install @storybook/core-client
This package contains browser-side functionality shared amongst all the frameworks (React, RN, Vue, Ember, Angular, etc) in the old "v6" story store back-compatibility layer.
A framework calls the start(renderToDom, { render, decorateStory })
function and provides:
renderToDom
function, which tells Storybook how to render the result of a story function to the DOMrender
function, which is a default mapping of args
to a story result in CSFv3decorateStory
function, which tells Storybook how to combine decorators in the framework.The start
function will return a configure()
function, which can be re-exported to be used in preview.js
(deprecated), or automatically by the main.js:stories
field to:
storiesOf
API.Copyright 2013 - present © cnpmjs.org