Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react'
- import { storiesOf } from '@storybook/react'
- import FetchStory from './FetchStory'
- storiesOf('Fetch Example', module)
- .add('Plain', () => (
- <FetchStory mocks={{
- matcher: '/api/signup',
- response: {
- body: {
- value: 'success',
- },
- },
- options: {
- method: 'POST',
- },
- }]}>
- <div>Add your components here</div>
- </FetchStory>
- ))
Add Comment
Please, Sign In to add comment