Check out example codes for "how to put a name on a fieldset". It will help you in understanding the concepts better.
Code Example 1
<!--To put a name on a fieldset, simply use the "legend" tag.-->
<fieldset>
<legend>fieldset name</legend>
</fieldset>
Learn ReactJs, React Native from akashmittal.com