REACT: access parent ref in nested children generated by recursion

Viewed 36

I am building a nested list / file tree like component. I can expand first parents height, but cannot expand again when expanding nested child's list.

How can I access parents ref from a nested child generated by recursion to transition parents height to show nested child's list as well?

0 Answers
Related