how to writ e class name in jsx

 const myElement = <h1 className="myclass">Hello World</h1>;


it is rendered as like below

<h1 class="myclass">Hello World</h1>




No comments:

Post a Comment

How to host application on server new way

 copy the htacess from public to root copy the server.php from public to root but rename to index.php htacess <IfModule mod_rewrite.c>...