Check out example codes for "editable text box html". It will help you in understanding the concepts better.

Code Example 1

<p contenteditable="true">This is an editable paragraph.</p>

Learn ReactJs, React Native from akashmittal.com