Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 330 Bytes

renderNothing.md

File metadata and controls

24 lines (20 loc) · 330 Bytes

renderNothing

Description

A higher-order component that always renders null.

API

renderNothing() : Function

Example

import {
  compose,
  renderNothing
} from 'incompose';

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

export default compose(
  renderNothing,
)(Counter);