I was looking at this code in an article about imports and exports
export default class User {
constructor(name) {
this.name = name;
}
}
What is the benefit of giving it the name User if the name when it is imported is actually what will be used? I don't see any reason for doing it this way, can someone share one please.