Item.js 278 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 import * as React from 'react'; export function Item(_ref) { var children = _ref.children, setRef = _ref.setRef; var refFunc = React.useCallback(function (node) { setRef(node); }, []); return /*#__PURE__*/React.cloneElement(children, { ref: refFunc }); }