Check out example codes for "how to affect a deffernt element in css". It will help you in understanding the concepts better.

Code Example 1

//cube is directly inside the container:
#container:hover > #cube { background-color: yellow; }

//cube is next to (after containers closing tag) the container:
#container:hover + #cube { background-color: yellow; }

//If the cube is somewhere inside the container:
#container:hover #cube { background-color: yellow; }

//If the cube is a sibling of the container:
#container:hover ~ #cube { background-color: yellow; }

Code Example 2

<div id="container">
  <div id="cube">
  </div>
</div>

Code Example 3

#container:hover ~ #cube { background-color: yellow; }

Learn ReactJs, React Native from akashmittal.com