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
{{ message }}
Repository navigation
Docs: Homepage example of components is different from Components section, broken #678
On the Homepage for Hyperscript, there is an example of using a component structured as:
<templatecomponent="click-counter"
_="init set ^count to 0"><button_="on click increment ^count">+</button><span>Clicks: ${^count}</span></template><click-counter></click-counter><click-counter></click-counter>
which doesn't seem to work when I try it in the playground or my own file locally. It also differs from the examples within the Components section:
<scripttype="text/hyperscript-template" component="click-counter" _="set ^count to 0"><button_="on click increment ^count">+</button><spanclass="label">Clicks: ${^count}</span></script><click-counter></click-counter><br><click-counter></click-counter>
Activity