Working with refs in React

added by JavaScript Kicks
8/17/2018 7:06:52 AM

461 Views

Refs make it possible to access DOM nodes directly within React. This comes in handy in situations where, just as one example, you want to change the child of a component. Let's say you want to change the value of an element, but without using props or re-rendering the whole component.


0 comments