class vs className in React 16

后端 未结 8 2400
感动是毒
感动是毒 2020-11-29 02:56

I saw that React 16 allows for attributes to be passed through to the DOM. So, that means \'class\' can be used instead of className, right?

I\'m just wondering if

8条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 03:53

    as of june 2019, the process of changing className to class has been halted, it could be continued later

    here is the post by facebook dev explain why

    https://github.com/facebook/react/issues/13525

提交回复
热议问题