I don't think I could write a comment that's a stronger explanation than what Guillermo Rauch wrote:
https://rauchg.com/2015/pure-ui
TL;DR: It's not about the HTML in Javascript; it's about being able to declare all the states of your UI in a stateless way. The result is that React components are like pure functions: you pass them inputs and you get predictable outputs.