You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The API allows it to be closer to JS rather than XML/HTML, which means that with this feature, we can also use other values like Symbols:
<Button[Symbol('INTERNAL_FLAG')]/>
Random:
We can also expand the usage for namespaces, for example, the use directive:
functionclickOutside(el,accessor){constonClick=(e)=>!el.contains(e.target)&&accessor()?.();document.body.addEventListener("click",onClick);onCleanup(()=>document.body.removeEventListener("click",onClick));}<divclass="modal"use:[clickOutside]={()=>setShow(false)}>
Some Modal
</div>
JSX FeatureAn idea directly related to enhancing JSX.WishlistA general wishlist/nice to have.
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This feature would allow JSX to accept dynamic attributes rather than static attributes.
The API allows it to be closer to JS rather than XML/HTML, which means that with this feature, we can also use other values like Symbols:
Random:
We can also expand the usage for namespaces, for example, the
use
directive:Beta Was this translation helpful? Give feedback.
All reactions