UNPKG

refun

Version:

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

9 lines 339 B
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import { useRef } from 'react'; export var mapRef = function mapRef(name, initialValue) { return function (props) { var ref = useRef(initialValue); return Object.assign({}, props, _defineProperty({}, name, ref)); }; }; //# sourceMappingURL=map-ref.js.map