3 ms·
Yes, the reason is that you can't write something like const { class } = props Which is very common and deeply confusing. So even though "class" will tec
by danabramov 9y ago
Yes, the reason is that you can't write something like
const { class } = props
Which is very common and deeply confusing.
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.)