ES6 `export * from import`?
Default export as Default:
export {default} from './something';
Default export as Named:
export {default as foo} from './something';
Named export as Default:
export {foo as default} from './something';
Named export as Named:
export {foo} from './something';
Named export as Renamed:
export {foo as bar} from './something';
Yes, ES6 supports directly exporting imported modules:
export { name1, name2, …, nameN } from …;
export {FooAction, BarAction} from './action_creators/index.js'
You can also re-export all exports of the imported module using the *
syntax:
export * from …;
export * from './action_creators/index.js';
More info on MDN.