Check out example codes for "print media query css". It will help you in understanding the concepts better.

Code Example 1

@media print { 
 /* All your print styles go here */
 #header, #footer, #nav { display: none !important; } 
}

Code Example 2

@media print {
  /* styling goes here */
  .example {
    display: none;
  }
}

Learn ReactJs, React Native from akashmittal.com