I have functional component that only in run time I know how many useRef needed. run time, in this case, means inside useEffect that depends on some parameters and only then I know how many useRef needed... Of course, useRef / createRef can't be used in useEffect.
Examples I saw are about defining array in ref.current when component initially rendered.
What can I do?