Daniel SchmidtRef objects inside useEffect HooksWhen making a custom hook that needs a reference to a DOM node, your first guess would be to use the new useRef hook. It was certainly…Feb 11, 201920Feb 11, 201920