I don't know how to explain it, just read the code.
import Foo from "./Foo.js";
Foo.add = (a, b) => a + b;
const Foo2 = () => {
return Foo.multiply(10, 10) + 10;
};
export { Foo, Foo2 };
import Foo from "./Foo.js";
export { default as Foo } from "./Foo.js"; // unnecessary export
Foo.add = (a, b) => a + b;
const Foo2 = () => {
return Foo.multiply(10, 10) + 10;
};
export { Foo2 };
import Bar from "./Bar.js"; // unnecessary import
export { default } from "./Bar.js";