Closed
Description
If you are reporting a bug or requesting support, start here:
Bug or support request summary
Using addon-notes
causes story to not render. Instead it renders an error "Expecting a valid React element from the story...Seems like you are not returning a correct React element from the story.
Could you double check that?"
Steps to reproduce
Steps to reproduce:
Here is a link to a repository where I have recreated the problem: https://github.com/terrencewwong/storybook-addon-notes-example
To summarize, this is what I did:
- install react, react-dom, storybook, and addon-notes
- follow the setup instructions for addon-notes
- write a simple story that uses the notes addon
This is the code for the story that is in the repo I linked:
import React from 'react';
import { storiesOf } from '@storybook/react';
const Component = () => <div>Hello</div>
storiesOf('Component', module)
.add('default', () => <Component />, { notes: 'A very simple component' });
Please specify which version of Storybook and optionally any affected addons that you're running
@storybook/react v3.4.2
@storybook/addon-notes v3.4.2
Activity