fbredius/storybook

View on GitHub
docs/snippets/react/list-story-starter.js.mdx

Summary

Maintainability
Test Coverage
```js
// List.stories.js|jsx

import React from 'react';

import { List } from './List';

export default {
  /* 👇 The title prop is optional.
  * See https://storybook.js.org/docs/react/configure/overview#configure-story-loading
  * to learn how to generate automatic titles
  */
  title: 'List',
  component: List,
};

// Always an empty list, not super interesting
const Template = (args) => <List {...args} />;
```