Created
September 19, 2019 13:05
-
-
Save maxmckenzie/862ebd287d899448f15282b326c78c7f to your computer and use it in GitHub Desktop.
Storybook react stories
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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