mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 20:41:07 +08:00
9 lines
239 B
JavaScript
9 lines
239 B
JavaScript
import ReactDOM from 'react-dom';
|
|
import { document } from 'global';
|
|
|
|
import decorator from '../src';
|
|
|
|
const content = decorator(() => 'Hello World!');
|
|
const wrapper = document.querySelector('#content');
|
|
ReactDOM.render(content, wrapper);
|