React: 在react中通过ref获取input值

this.refs.user.value, ref='user'

Posted by chanweiyan on July 19, 2020