Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

react-component-empty

2.0.0 • Public • Published

react-component-empty

An empty React component that doesn't output anything and doesn't update.

About

Makes it easy to turn off some failing component without making lots of changes to your code.

var FailingComponent = false ? require('failing-component') : require('react-component-empty');
// ...
render: function() {
    return <FailingComponent/>
}

install

npm i react-component-empty

Downloadsweekly downloads

25

version

2.0.0

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability