--- const { text } = Astro.props; const words = text.split(' '); const last = words.length - 1; --- {words.map((word, i) => ( {word} {i !== last && } ))}