Currently, the print component sets innerHTML directly before triggering a print, which can be dangerous in React since we're taking control away from it. This might also be why the print page doesn't have the styles of the rest of the app. We might be able to improve this by using CSS to hint to the browser not to print certain parts of the page (like the sidebar and header), which would allow us to print the body of the page which styles!
https://github.com/codeforboston/windfall-elimination/blob/develop/src/pages/print.tsx#L221
Currently, the print component sets
innerHTMLdirectly before triggering a print, which can be dangerous in React since we're taking control away from it. This might also be why the print page doesn't have the styles of the rest of the app. We might be able to improve this by using CSS to hint to the browser not to print certain parts of the page (like the sidebar and header), which would allow us to print the body of the page which styles!https://github.com/codeforboston/windfall-elimination/blob/develop/src/pages/print.tsx#L221