3 ms·
What I feel strange about default export is that you can actually mix it with named exports. export default class Foo { } export const Bar = ""; and t
by drinchev 9y ago
What I feel strange about default export is that you can actually mix it with named exports.
export default class Foo { }
export const Bar = "";
and then
import Foo, { Bar } from "./module"
I would expect if a module has a default export, then it should not have named ones. Why? At least it puts more structure in your code architecture.