Comment

Comment by TheCoelacanth

> It forces you to write loops, conditionals, etc, outside of the markup you are currently writing/reading.

I don't get this complaint at all. Between map and ternary expressions, you can get both loops and conditionals in your markup, e.g.

    <div>
      {listOfThings.map(thing => thing.isX ?
        <X thing={thing} />
        <Y thing={thing} />
      )}
    </div>

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton