React: add body class only to certain components in useEffect hook?
I am using React 16.8.6 and hooks. I am new to hooks. I have a component loaded in a route I need to add a body class to. When the user leaves this page, I need the class removed. I am using