Check out example codes for "how to add a border around text in html". It will help you in understanding the concepts better.

Code Example 1

<p style="border:3px; border-style:solid; border-color:#FF0000; padding: 1em;">
  First example with text surrounded by a red border.<br>This example also has multiple lines.
</p>

Learn ReactJs, React Native from akashmittal.com