I\'m trying to create a form that appears in modal. So when user input a value, that value is stored in local storage. Here\'s a picture that help\'s you to understand what I me
This worked for me, using https://reactjs.org/docs/refs-and-the-dom.html
constructor(props) { super(props); this.email = React.createRef(); } submit() { var email = this.email.current.value; console.log(email); } render() { return ( this.submit()}>Send ); }