Guest User

Untitled

a guest
Dec 18th, 2017
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. import React from 'react'
  2. import { storiesOf } from '@storybook/react'
  3. import FetchStory from './FetchStory'
  4.  
  5. storiesOf('Fetch Example', module)
  6. .add('Plain', () => (
  7. <FetchStory mocks={{
  8. matcher: '/api/signup',
  9. response: {
  10. body: {
  11. value: 'success',
  12. },
  13. },
  14. options: {
  15. method: 'POST',
  16. },
  17. }]}>
  18. <div>Add your components here</div>
  19. </FetchStory>
  20. ))
Add Comment
Please, Sign In to add comment