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

Code Example 1

<button type="button" onclick="alert('You pressed the button!')">Click me!</button>

Code Example 2

<button>I'm a button</button>

Code Example 3

<html>
  <head>
    <title>Buttons</title>
  </head>
  
  <body>
    <button onclick = "myfunction()">button</button>
    
    <script>
      function myfunction() {
        console.log("This is a working button");
      }
    </script>
    
  </body>
</html>

Learn ReactJs, React Native from akashmittal.com