Each module can have one default export. It's the main thing the module provides.
// User.js
export default class User {
constructor(name) {
this.name = name;
}
}
Default exports are common for modules that export a single class or function.