snippet
Use className with React.js
If you want use Classname with React.js, write className parameter, if you use simple classname without uppercase, React return a warning in the console for change this.
const el = <h1 className="h1">Hello World</h1>;
Related snippets |
---|