Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on React 16. Parent comment
const { class } = props
So even though "class" will technically work now, it will still warn, and ask that you use "className".
(And officially supporting both would make it confusing for third party components since each would have to also support both.)
There are no comments on this comment yet.
So even though "class" will technically work now, it will still warn, and ask that you use "className".
(And officially supporting both would make it confusing for third party components since each would have to also support both.)