Skip to content

Instantly share code, notes, and snippets.

@IsTheJack
Created April 18, 2019 22:16
Show Gist options
  • Save IsTheJack/ee51fd60818d0694582ef82e6442d393 to your computer and use it in GitHub Desktop.
Save IsTheJack/ee51fd60818d0694582ef82e6442d393 to your computer and use it in GitHub Desktop.
Just a simple use of the Storybook
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