Provides methods to open print preview for a specific component
npm install react-print-tool
Import the react tool object and use one of the provided methods
import { PrintTool } from "react-print-tool"
//use your own react component
PrintTool.printFromReactComponent(<TheBestReactComponent prop={data} /> )
// use html in a string
PrintTool.printFromString("<div>Hello world</div>" )
// use selector to print an existing html element
PrintTool.printExistingElement("div.elementClass #elementID")