react-remove Removes elements from DOM on mount. Installation npm install react-remove --save Usage import { Remove } from "react-remove" const App = () => ( <div> <Remove id="element-id" /> <Remove id={["id1", "id2"]} /> </diV> ) ReactDOM.render(<App />, mountNode)