I am trying to print ANTD table using ReactToPrint hook, everything seems to work fine, but I want to show some text on top of page before print. means I want to show some text for header purpose, when I am setting the visibility of header component true, its not print on first click, it shows on 2nd click, but I want to show the header on first click and when I print or cancel, header should be hide.
Please help me, Please hit print button two time to see the result in the below link.
Thanks in Advance