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

This has to be an error in the documentation:

<ul class="items">

Should be:

<ul className="items">



Depends on the framework. You can use class= in Preact.


Didn't they say it? If you turn on the react directive then it outputs the react prop.

Btw, you seem to have missed the new jsx transformer, className has been a thing of the past even in React.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: