loreanvictor / rehtm

Create and hydrate HTML with HTM

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't handle arrays

loreanvictor opened this issue · comments

this doesn't work, while it should:

import { html } from 'https://esm.sh/rehtm'

document.body.appendChild(html`
  <ul>${[1, 2, 3, 4, 5].map(i => html`<li>${i}</li>`)}</ul>
`)

this is working now.