Why is react removing my class names?

Posted by Editorial Staff | Updated on

If react is removing your custom class names, You have to use the className attribute instead of the class attribute.

Here is an example:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers