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
import{renderer,create,tsx}from"@dojo/framework/core/vdom";importicachefrom"@dojo/framework/core/middleware/icache";import"@dojo/themes/dojo/index.css";constfactory=create({ icache });constApp=factory(functionApp({middleware: { icache }}){constclickCount=icache.getOrSet("clickCount",0);return(<div><h2>Click the button to increment the click counter</h2><buttononclick={()=>icache.set("clickCount",icache.get("clickCount")+1)}>
Click me!
</button><br/><br/><div>Clicked: {clickCount}</div></div>);});constr=renderer(()=><App/>);r.mount();
If it's too much effort to support numbers/booleans, it would be at least nice to throw an error in vdom explaining that it encountered a number/boolean.
The text was updated successfully, but these errors were encountered:
Enhancement
It would be nice to be able to support numbers / booleans in vdom without having to cast them to strings.
In this example, there is no output as
clickCount
is a number.If it's too much effort to support numbers/booleans, it would be at least nice to throw an error in vdom explaining that it encountered a number/boolean.
The text was updated successfully, but these errors were encountered: