📜  从 index.js 中反应导出多个组件 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:48.692000             🧑  作者: Mango

代码示例1
// Default export (recommended)
export {default} from './MyClass' 

// Default export with alias
export {default as d1} from './MyClass' 

// In >ES7, it could be
export * from './MyClass'

// In >ES7, with alias
export * as d1 from './MyClass'