How to set CSS attributes for one element on the basis of other element's class
I am working with React and CSS. I wanted to set "background-color":"yellow" on selector 2 (tr#selector2), if selector 1 (div.selector1) is having "show" class: div.selector1.show And wanted to set "background-color":"red" on selector 2 (tr#selector2), if selector 1 (div.selector1) is having…