📜  导出默认箭头函数 - Javascript 代码示例

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

代码示例1
// You can only export anonymous functions directly
export default () => console.log("Hello World.");

// If you want named exports, you have to export it seperately
const App = () => console.log("This is an app.");
export default App;