Michael Shilman 2a238317e9 Addon-docs: Fix React.forwardedRef/memo props (#8445)
Addon-docs: Fix React.forwardedRef/memo props
2019-10-22 08:51:55 +08:00

13 lines
414 B
JavaScript

import React from 'react';
import DocgenButton from '../../components/DocgenButton';
const ButtonWithMemo = React.memo(props => <DocgenButton {...props} />);
export default {
title: 'Addons|Docs/ButtonWithMemo',
component: ButtonWithMemo,
};
export const displaysCorrectly = () => <ButtonWithMemo>Hello World!</ButtonWithMemo>;
displaysCorrectly.story = { name: 'Displays components with memo correctly' };