The export statement below gives a syntax error
export default const hello = () => console.log("say hello")
why ?
I'm only able to export named functions
export function hello() {
console.log("hello")
}
What is the reason?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…