Skip to content

Instantly share code, notes, and snippets.

@maxmckenzie
Created September 19, 2019 13:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxmckenzie/862ebd287d899448f15282b326c78c7f to your computer and use it in GitHub Desktop.
Save maxmckenzie/862ebd287d899448f15282b326c78c7f to your computer and use it in GitHub Desktop.
Storybook react stories
import { storiesOf } from '@storybook/react';
import React from 'react';
storiesOf('example', module)
.add(
'example',
() => (
<div>
<div></div>
</div>
),
{
notes: 'A very simple example of addon notes',
},
)
.add('example 2', () => (
<div>
<div></div>
</div>
));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment