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
It seems like it uses :eventname="magicstring" for event handlers where Lit uses @eventname=${(e) => myhandler(e) which is standard javascript in a tagged template.
It seems like it uses :for as a directive
<tr :for="user of subset || users" key="${ user.id }">...
which seems to conflict with listening to a for event - if such is fired, where as Lit uses the standard javascript mapping way
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
Uh oh!
There was an error while loading. Please reload this page.
-
It seems like it uses
:eventname="magicstring"
for event handlers where Lit uses@eventname=${(e) => myhandler(e)
which is standard javascript in a tagged template.It seems like it uses
:for
as a directivewhich seems to conflict with listening to a
for
event - if such is fired, where as Lit uses the standard javascript mapping waySimilarly for if
<div :if="subset && !subset[0] "
compared to${subset && !subset[0] ? html'<div>':''}
Lit also creates standard custom elements that can be used as any other tag in the page.
Where does Hyper shine over Lit?
Beta Was this translation helpful? Give feedback.
All reactions