Check out example codes for "input type color". It will help you in understanding the concepts better.

Code Example 1

<div>
    <input type="color" id="head" name="head"
           value="#e66465">
    <label for="head">Head</label>
</div>

Learn ReactJs, React Native from akashmittal.com