@arolariu/components
Version:
🎨 70+ beautiful, accessible React components built on Base UI. TypeScript-first, CSS Modules styling, tree-shakeable, SSR-ready. Perfect for modern web apps, design systems & rapid prototyping. Zero config, maximum flexibility! ⚡
11 lines (10 loc) • 362 B
JavaScript
"use client";
import * as __rspack_external_react from "react";
function useMergedRefs(...refs) {
return __rspack_external_react.useCallback((element)=>{
for (const ref of refs)if (ref) if ("function" == typeof ref) ref(element);
else ref.current = element;
}, refs);
}
export { useMergedRefs };
//# sourceMappingURL=useMergedRefs.js.map