mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-06 01:51:05 +08:00
16 lines
471 B
JavaScript
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>
|
|
);
|