Go ProSign in
Hide playlist

    Manipulate the DOM with React refs

    Kent C. DoddsKent C. Dodds

    Often you'll find there's a jQuery plugin or JavaScript library which needs access to DOM nodes to work in your application. Other times you need access to the DOM node directly to get the value of form fields or for other reasons. In this lesson we'll learn how to do this using React's ref prop.

    You must be a Member to view code