Skip to content

0.1.22

Choose a tag to compare

@ihasq ihasq released this 10 Jul 17:22
· 78 commits to main since this release

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" !!