2019-10-12 17:32:44 +02:00

13 lines
335 B
JavaScript

import { configure } from '@storybook/react';
// The simplest version of examples would 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);