UNPKG

refun

Version:

A collection of React Hook-enabled functions that compose harmoniously with each other. Similar to `recompose`, but:

8 lines 261 B
import { useContext } from 'react'; export var mapContext = function mapContext(context) { return function (props) { var contextProps = useContext(context); return Object.assign({}, props, contextProps); }; }; //# sourceMappingURL=map-context.js.map