最佳答案
What exactly is the difference between the two? I've seen people use:
function foo () {
...
}
export default foo;
And I've seen:
function bar () {
...
}
export bar;
Also, why would you use the one over the other?