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

Code Example 1

<form name="ejemplo1" action="15-html5-tel-input-demo2.php" method="POST">
	    Introduce tu TELEFONO con los 9 dígitos: <input type="tel" name="telefono" pattern="[0-9]{9}">
	    <input type="submit" value="Enviar">
</form>

Learn ReactJs, React Native from akashmittal.com