storybook/docs/snippets/common/storybook-preview-prepareforinline.js.mdx
2020-08-08 03:33:41 +01:00

16 lines
317 B
Plaintext

```js
// .storybook/preview.js
import React from 'react';
import { render } from 'react-dom';
import toReact from '@egoist/vue-to-react';
export const parameters = {
docs: {
prepareForInline: (storyFn, { args }) => {
const Story = toReact(storyFn());
return <Story {...args} />;
},
},
};
```