mirror of
https://github.com/storybookjs/storybook.git
synced 2025-03-28 05:10:17 +08:00
8 lines
211 B
JavaScript
Executable File
8 lines
211 B
JavaScript
Executable File
import * as storybook from '@storybook/react';
|
|
|
|
const req = require.context('./components/', true, /stories\.js$/);
|
|
|
|
const loadStories = () => req.keys().forEach(req);
|
|
|
|
storybook.configure(loadStories, module);
|