Created
April 18, 2019 22:16
-
-
Save IsTheJack/ee51fd60818d0694582ef82e6442d393 to your computer and use it in GitHub Desktop.
Just a simple use of the Storybook
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 * as React from 'react' | |
// tslint:disable-next-line: no-implicit-dependencies | |
import { storiesOf } from '@storybook/react' | |
import ComponentName from './ComponentName' | |
storiesOf('ComponentName', module) | |
.add('some case of use', () => ( | |
<ComponentName>Hello Button!!!</ComponentName> | |
)) | |
.add('another case of use', () => ( | |
<ComponentName> | |
<span role="img" aria-label="so cool"> | |
😀 😎 👍 💯 | |
</span> | |
</ComponentName> | |
)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment