Should templates be a default export or a named export? #140
silviogutierrez
announced in
RFC
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We generally use named exports everywhere. But currently a template is required to be a default export. This is how the renderer will find the file and consume it.
Currently we expect this:
Should we require a
Template
export instead, like so:Or maybe even a variable with the same name as the template, like so:
Beta Was this translation helpful? Give feedback.
All reactions