```js // TodoItem.stories.js|jsx|ts|tsx import React from 'react'; import fetch from 'node-fetch'; import { TodoItem } from './TodoItem'; 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: 'Examples/Loader' component: TodoItem, }; export const Primary = (args, { loaded: { todo } }) => ; Primary.loaders = [ async () => ({ todo: await (await fetch('https://jsonplaceholder.typicode.com/todos/1')).json(), }), ]; ```