In summary, I am seeking a function similar to state.is()
that can verify a state with multiple child states from one of those child states?
This is the structure I have:
Parent 1
Child 1.1
Child 1.2
Child 1.3
Parent 2
Child 2.1
Child 2.1.1
Child 2.1.2
Child 2.2
Child 2.3
I aim to conceal a specific element on all descendants (children and grandchildren) of Parent 2 without having to manually check each state.