1

Hey guys I've tried to create a print button that prints a single component when clicked,when using :

  const onPrint = () => {
    window.print();
  };

yet what's being printed is the entire page.

I have a list of components that contain an image mainly and i want the image to be printed when clicking the button.

Is this possible to do?

and it looks like this

NewbieAeg
  • 557
  • 3
  • 8
  • 15

0 Answers0