When a user clicks a button, a component is supposed to be mounted, once the component is mounted, window.print() is supposed to be run and then the component i
window.print()