storybook/docs/snippets/react/component-story-static-asset-cdn.js.mdx
2020-10-07 12:23:34 +08:00

14 lines
210 B
Plaintext

```js
// MyComponent.stories.js
import React from 'react';
export default {
title: 'img',
};
export const withAnImage = () => (
<img src="https://placehold.it/350x150" alt="My CDN placeholder" />
);
```