I just started learning React by adding a component with a simple rendering function:
render() { return <div class="myApp"></div> }
When I run the application, I get the following error:
Warning: Unknown DOM property class. Did you mean className?
I can solve this by changing class to className .
The question arises: Is this agreement responsive? Also why do I need to use className instead of the usual class ? If this is a limitation, is it due to JSX syntax or somewhere else?
javascript reactjs react-jsx
jsalonen Jun 21 '15 at 18:49 2015-06-21 18:49
source share