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

Code Example 1

<!doctype html>
<html>
  <body>
    
    <input type="checkbox">
    <input type="radio">
    
  </body>
</html>

Learn ReactJs, React Native from akashmittal.com