Check out example codes for "how to make maenu icon in css". It will help you in understanding the concepts better.

Code Example 1

<div class="container" onclick="myFunction(this)">
  <div 
class="bar1"></div>
  <div class="bar2"></div>
  <div 
class="bar3"></div>
</div>

Learn ReactJs, React Native from akashmittal.com