Basic input transform using React