Norbert de Langen 99051784b1 WIP
2019-05-08 16:25:19 +02:00

13 lines
340 B
JavaScript

import { configure } from '@storybook/react';
// The simplest version of examples would just export this function for users to use
function importAll(context) {
context.keys().forEach(filename => context(filename));
}
function loadStories() {
importAll(require.context('./stories', true, /\.js$/));
}
configure(loadStories, module);