Make input[type=number] working with React