I wouldnt call it a "gotcha". Using vanilla javascript you'd be using className as well:
document.body.className = 'class1 class2'
JSX chose to align names to the DOM spec [0]. Same for htmlFor and friends.[0] https://dom.spec.whatwg.org/#ref-for-dom-element-classname%E...