Check out example codes for "css parent selector". It will help you in understanding the concepts better.

Code Example 1

$(this).parent(); // jquery

Code Example 2

/* There is no such selector
   in 2008, the following was suggested */

a < img { 'border': none }

/* Which in theory, would set an an images 'a' parent
   border to none
   Of course, this does not exist

   Another suggestion... */

div:parent { 'border': none }

/* Pretty self explainatory, nevertheless it does not
   exist.

   You will have to use JavaScript/jQuery */

$('some-element').parent();

Learn ReactJs, React Native from akashmittal.com