Replies: 3 comments 2 replies
-
sounds good. I'll think about it |
Beta Was this translation helpful? Give feedback.
0 replies
-
maybe ease way is remove but in this case developers shouldn't name component with HTML tag appRoutes: "/":
OuterFrame(....):
PageTitle
PageSubtitle
AccountPanel(...):
ShoppingCart(...)
Promo(...):
"promo text"
Orders(...)
MerchGrid(...):
MerchItem(...):
... |
Beta Was this translation helpful? Give feedback.
2 replies
-
or this 👀: <template>
<OuterFrame ...>
<PageTitle></PageTitle>
<PageSubtitle></PageSubtitle>
<AccountPanel>
<ShoppingCart></ShoppingCart>
<Promo>
promo text
</Promo>
<Orders></Orders>
</AccountPanel>
<MerchGrid>
<MerchItem></MerchItem>
</MerchGrid>
</OuterFrame>
</template> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
As a framework is used more and more intensely, more components will be introduced and composed in various ways. Tags will then tend to be replaced by components, until the point where code starts looking like this:
When coding at a high level of abstraction, the use of a
component
keyword becomes tedious and redundant.One way of handling this might be to mimic some of how tags are handled and use a
c
as the disambiguator instead of thet
for tags. HencecCompX
would always be understood ascomponent CompX
for anyCompX
. This might make the above kind of code easier to read, since the relatively unmeaningful keywordcomponent
is no longer at the front of every line:Beta Was this translation helpful? Give feedback.
All reactions