phymooc / learn-javascript

0 stars 0 forks source link

Re-exporting / Aggregating #9

Open phymo opened 2 years ago

phymo commented 2 years ago

ES6 supports directly exporting imported modules:

export { name1, name2, …, nameN } from …;

export {FooAction, BarAction} from './action_creators/index.js'
export { default as foo } from './foo';