node = > input = node
es6 arrow function is often used, and I don"t know why I ended up with an assignment
render() {
let input = "";
return (
<div>
<input ref={node => input = node} />
<button type="submit" onClick={() => {
console.log(input.value);
}}></button>
</div>
);
}