bringing back component keyword
#421
Closed
amitu
started this conversation in
Ideas & RFCs
Replies: 3 comments 1 reply
-
Pros
Cons
|
Beta Was this translation helpful? Give feedback.
1 reply
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
We agree on the things more explicit so we're ready to lose the external local variables |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we write:
Here,
x, an argument definition, andwidtha property of root component are "merged" together. What if we wrote:UI Builder
Another advantage is we can use "ui builder", so if we do not know the root component type (and do not want to create a wrapper node just for wrapping things) we can do:
Some UI builder can generate the
ui-json's json code. It need to be json, it can also be ftd code included there (if we can somehow demarcate the "region" of ftd code that can be overwritten by the UI generator tool.Component Can Create More Than One Children
Why not? Main problem is debuggability. Normally the outer child, if there was single child for a component, we can add
data-componet=<full-component-name>in generated HTMl, now will have to either put this on each child, or not put it. We can not wrap it in a node because then parent's layout will break.So maybe we won't allow this.
Beta Was this translation helpful? Give feedback.
All reactions