Check out example codes for "buttons with class html". It will help you in understanding the concepts better.

Code Example 1

<button class="thisisclass" id="classbutton">i got class</button>

Learn ReactJs, React Native from akashmittal.com