'How to expand rows programmatically depending on depth level in react-table 7?

Is it possible to implement? I have a select component with depth levels [0,1,2] I'm confused on where I should put the logic to expand react-table rows depending on a selected value in that select. Newbie to React. Thanks beforehand.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source