Skip to content

wikiwi/react-remove

Repository files navigation

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)

About

Remove elements from DOM on mount

Resources

License

Stars

Watchers

Forks

Packages

No packages published