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

Code Example 1

<input type="checkbox" onchange="doSomething(this)">

function doSomething(element){
   var isChecked=element.checked;
	//do some action if it is checked
}

Code Example 2

<input type="checkbox">

Learn ReactJs, React Native from akashmittal.com