Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jakelazaroff
on Sept 8, 2022
|
parent
|
context
|
favorite
| on:
Fresh 1.1 – Automatic JSX, plugins, DevTools, and ...
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...
e_y_
on Sept 9, 2022
[–]
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: