Skip to content
This repository was archived by the owner on Mar 9, 2026. It is now read-only.

Latest commit

 

History

History
41 lines (26 loc) · 944 Bytes

File metadata and controls

41 lines (26 loc) · 944 Bytes

react-remove

Removes elements from DOM on mount.

NPM Version Widget Build Status Widget Coverage Status Widget

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)