Ember people, did you know that you can write components without a wrapper element (with `tagName: ''`)
-
-
Just watched this video and it seems this technic is actually called render propshttps://twitter.com/kentcdodds/status/911086452699627522 …
-
No, those are two different things.
-
Well I guess your right in regards to tagName: '' but I'm talking more about the use of that to build declarative apis with {{yield}}
-
I've completely lost this thread at this point...
-
Watched! "Render prop" is synonymous with "Block Param" in Ember: <Mouse>{mouse => ...}</Mouse> {{
#my-mouse as |mouse|}}...{{/my-mouse}} -
And with the upcoming angle bracket syntax in Ember: <Mouse as |mouse|>...</Mouse>
-
fwiw I really do think that having a built-in syntax for this helps cut through a lot of the debate about whether this is a good idea.
-
And nothing is stopping JSX from having syntax like <Mouse as |foo|> or something that people think looks more like JS like <Mouse (foo)>
- 1 more reply
New conversation -
-
-
Looking forward to being able to do this in glimmer.js as well.
-
It's supported on master.
@tomdale is working on wrapping up a new release. There are some breaking changes but they're good. -
Nice :)
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.