We sometime use export default in front of the class definition and sometime at the end of the file. I think we can agree to always use it at the same place.
Example 1 :
export default class ClassName extends Components {
// ...
}
I prefer at the end of the file like in example 1 because in front of the class we often use decorators like @observer and @inject and it start to make it hard to read.
We sometime use
export default
in front of the class definition and sometime at the end of the file. I think we can agree to always use it at the same place.Example 1 :
Example 2 :
I prefer at the end of the file like in example 1 because in front of the class we often use decorators like
@observer
and@inject
and it start to make it hard to read.