Create a DOM reference using createRef in React 16.3

Nik Graf
InstructorNik Graf

Share this video with your friends

Send Tweet

Refs allow you to imperatively modify a child outside of the typical React dataflow. With React 16.3 a new ref API was introduce that should provide the convenience of string refs with the safety of callback refs.