With ES6, I can import several exports from a file like this:
import {ThingA, ThingB, ThingC} from \'lib/things\';
However, I like the orga
Just an other approach to @Bergi's answer
// lib/things/index.js import ThingA from './ThingA'; import ThingB from './ThingB'; import ThingC from './ThingC'; export default { ThingA, ThingB, ThingC }
Uses
import {ThingA, ThingB, ThingC} from './lib/things';