Skip to content

Latest commit

 

History

History
19 lines (15 loc) · 371 Bytes

createSink.md

File metadata and controls

19 lines (15 loc) · 371 Bytes

createSink

Description

Creates a component that renders nothing (null) but calls a callback when receiving new props.

API

createSink(
  callback : (props : Object) => void,
) : Function

Example

import { createSink } from 'incompose';

const cb = (props) => console.warn('props are updated', props);

export default createSink(cb);