Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
jakelazaroff
3y ago
0 comments
Share
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...
0 comments
default
newest
oldest
e_y_
3y ago
React JSX mostly uses JS DOM property naming (className, style, tabIndex) but converts a few HTML-style attributes (data-
, aria-
)
j
/
k
navigate · click thread line to collapse