storybook/code/renderers/preact/template/stories/react-compat.stories.js
2022-10-12 15:29:38 +11:00

16 lines
471 B
JavaScript

/* eslint-disable react/react-in-jsx-scope */
import { ReactFunctionalComponent, ReactClassComponent } from './React';
export default {
component: ReactFunctionalComponent,
};
export const ReactComponentDemo = () => (
<div>
<h1>React component demo</h1>
<ReactFunctionalComponent label="This is a React functional component rendered by Preact" />
<hr />
<ReactClassComponent label="This is a React class component rendered by Preact" />
</div>
);