I\'m trying to use a ref in React, which is an array that contains references to multiple other divs in the DOM.
In a useEffect, I map through an object to render the