We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use @storybook/cli@4.0.0-alpha.3.
@storybook/cli@4.0.0-alpha.3
const styles = { textAlign: 'center', }; let CenterDecorator = (storyFn) => ( <div style={styles}> { storyFn() } </div> ) storiesOf('Button', module) .addDecorator(CenterDecorator) .add('with text', () => ({ components: { MyButton }, template: '<my-button @click="action">Hello Button</my-button>', methods: { action: action('clicked') }, })) .add('with JSX', () => ({ components: { MyButton }, render(h) { return <my-button onClick={this.action}>With JSX</my-button>; }, methods: { action: linkTo('clicked') }, }))
I get the error: ReferenceError: h is not defined.
ReferenceError: h is not defined
If add h in render, it work. #3409
h
render
But on the addDecorator, I cant get the h.
addDecorator
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use
@storybook/cli@4.0.0-alpha.3
.I get the error:
ReferenceError: h is not defined
.If add
h
inrender
, it work. #3409But on the
addDecorator
, I cant get theh
.The text was updated successfully, but these errors were encountered: