add input react element