developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

async function is not renderd

itsumura-h opened this issue · comments

It works

function App(){
  return html`
    <p>hoge</p>
  `
}

render(html`<${App} />`, document.body);

but it is NOT works

async function App(){
  return html`
    <p>hoge</p>
  `
}

render(html`<${App} />`, document.body);

use async function in useEffect and keep component sync function