react-set-style A component component that sets style on a DOM element. Usage import SetStyle from "react-set-style" const MyApp = () => <div> <SetStyle target={document.body} property="overflow" value="hidden" > <div>The body should be overflow: hidden</div> </SetStyle> </div>