Could you please try to be a bit more substantive with your comments?
E.g., Why do you think JSX is the best? What limitations did you hit with those other template languages?
E.g., Why do you think JSX is the best? What limitations did you hit with those other template languages?
// data
const numbered = true // or false
const strings = ["a", "b", "c"]
// render
const items = strings.map(i => <li key={i}>Item {i}</li>)
if (numbered)
return (<ol>{items}</ol>)
else
return (<ul>{items}</ul>)