Check out example codes for "input is a void element tag and must neither have `children` not use `dangerouslySetInnerHTML`.". It will help you in understanding the concepts better.

Code Example 1

<input/> //HAS to be self-closing

Learn ReactJs, React Native from akashmittal.com