Reactjs – How to create a vector of references and pass it to children components?
I have a parent component which uses N children components, where N depends on the props in input. For example: function Parent({ cards }: { cards: Cards[] }) { return ( <> {cards.map((value, index) => <ChildComponent ref={TODO} value={value} key={value.id} />…