Check out example codes for "checkbox html bootstrap 4". It will help you in understanding the concepts better.
Code Example 1
<div>
<div class="row">
<div class="form-check form-check-inline">
<input id="checkbox2" type="checkbox">
<label for="checkbox2">Checkbox not checked</label>
</div>
<div class="form-check form-check-inline">
<input id="checkbox3" type="checkbox" checked="checked">
<label for="checkbox3">Checkbox checked</label>
</div>
</div>
</div>
Code Example 2
<div class="form-check form-check-inline">
<input id="checkbox3" type="checkbox" checked="checked">
<label for="checkbox3">Checkbox checked</label>
</div>
Learn ReactJs, React Native from akashmittal.com