Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 368 Bytes

File metadata and controls

26 lines (21 loc) · 368 Bytes

renderNothing

Description

A higher-order component that always renders null.

API

renderNothing() : Function

Example

import Inferno from 'inferno';

import {
  compose,
  renderNothing
} from 'incompose';

const Counter = (props) => (
  <div>will never be rendered!</div>
);

export default compose(
  renderNothing,
)(Counter);