react-kanban-kit
Version:
A flexible and customizable Kanban board component for React applications, built with TypeScript and modern drag-and-drop functionality powered by Atlassian's pragmatic-drag-and-drop.
18 lines (17 loc) • 396 B
JavaScript
const toFnRef = (ref) => !ref || typeof ref === "function" ? ref : (value) => {
ref.current = value;
};
function mergeRefs(refA, refB) {
const a = toFnRef(refA);
const b = toFnRef(refB);
return (value) => {
if (typeof a === "function")
a(value);
if (typeof b === "function")
b(value);
};
}
export {
mergeRefs as default
};
//# sourceMappingURL=mergeRefs.es.js.map