I am following a reactJS tutorial series and I am confused about the difference between finding the input tags value vs having an input ref='thing' in ReactJS for form handling.
For example...
<input id='user' name='username'/>
vs
<input id='user' ref='username'/>
is there any difference between doing:
formHandleFunction(){
//handle document.getElementById('user').value;
}
vs
formHandleFunction(){
//handle this.refs.username.value;
}