Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, `className` is the DOM property exposed to JavaScript that corresponds to the `class` attribute in HTML: https://developer.mozilla.org/en-US/docs/Web/API/Element/cla...


React JSX mostly uses JS DOM property naming (className, style, tabIndex) but converts a few HTML-style attributes (data-, aria-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: