I have this error with my code :Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'MutableRefObject<never[]>'
Howether I can't resolve it by changing my items.
Here is my code:
const Comp = (props: { items: any[] }) => { const refs = useRef([]); return (<> {props.items.map((i) => (<div key={i} ref={(el) => (refs[i] = el)}> {i}</div> ))}</> );};