The following example shows how to get the React DataTable's HTML, add it to a new browser window and trigger printing.