afresquet/react-recursive

Active parents for an active node

osequi opened this issue · 1 comments

Hey,

Thanks for the great package.

I would like to use it to render a recursive menu. And mark active all parent nodes which contain the active node, aka the active menu item.

This would suppose to send data from children up to parents. And I'm afraid this is not possible ... am I right?

Thanks again!

In theory that would require a tree data structure, where children link back to the parent node: https://linuxhint.com/tree_data_structure_tutorial_beginners/