3 ms·
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 tem
by joshdavham 11mo ago
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?
- andix 11mo agoMost template languages can't do something like that: // 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>)