-
Notifications
You must be signed in to change notification settings - Fork 49.6k
Description
Hopefully we'll get JSX namespacing soon for accessing components inside objects (#760). Then, technically, there is only one thing that JSX cannot do that vanilla JS can, using an object as props MyComp(myObject)
.
JSX is beautiful that's why I love it, MyComp(myObject, <Child />)
is not, I would much rather do <MyComp {myObject}><Child /></MyComp>
or whatever syntax you prefer. To be clear, I'm specifically and only talking about supporting an object, no additional properties.
It's still just sugar, but with this feature JSX is capable enough to do everything JS can, while still looking familiar and being more readable than its JS counterpart.
As I've mentioned before, I could take it upon me to implement this myself, it should be a relatively simple change.