{#each {length: 3} as _, i}
Or do you create an array of JSX-elements, like
let elements=[] for (let i=0; i < 10; i++) { elements.push(<li key={i}>I'm number {i}</li>) } return <ol>{elements}</ol>;