Re:Delightful React file/directory structure
by wjmao88 on Tuesday March 15, 2022 @12:09PM
(#30687091)
If your whole file is semantically the default export, then why not?
There are advantages with default exports, e.g. you can name it at usage site the way you want without the `:` syntax. Also some things like `React.lazy` only works with default exports.
There are advantages with default exports, e.g. you can name it at usage site the way you want without the `:` syntax. Also some things like `React.lazy` only works with default exports.