what's the advantage of using ref versus id when referencing the input value

Viewed 3284

what's the advantage of using:

this.refs.id.value

versus using:

document.getElementById('newID').value

is it just shorter syntax or is something else going on?

2 Answers
Related