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
asyncfunctionIPAddress(){constres=awaitfetch("https://api.ipify.org");constaddress=awaitres.text();return<div>Your IP Address: {address}</div>;}awaitrenderer.render(<IPAddress/>,document.body);console.log(document.body.innerHTML);// <div>Your IP Address: 127.0.0.1</div>
Can Hacky support it too? It seems it would be mostly a matter of adding await in some parts of the code.
The text was updated successfully, but these errors were encountered:
Hey, thanks for your work on this lib.
Crank.js allows components to be defined as async generator functions. For example:
Can Hacky support it too? It seems it would be mostly a matter of adding
await
in some parts of the code.The text was updated successfully, but these errors were encountered: