0.1.22
Added:
🦖 Asyncified - HyperStandard now supports Promise
async function WithFetch() {
const { name, age, gender } = await fetch("/api/user/ihasq").then(res => res.json());
return html`
<h1>${name}</h1>
<h2>Age: ${age}</h2>
<h2>Gender: ${gender}</h2>
`
}
document.body.append(...html`${WithFetch()}`) // without "await" !!