UNPKG

@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! ⚡

12 lines (11 loc) • 435 B
"use client"; import * as __rspack_external_react from "react"; function useEventCallback(callback) { const callbackRef = __rspack_external_react.useRef(callback); __rspack_external_react.useLayoutEffect(()=>{ callbackRef.current = callback; }); return __rspack_external_react.useCallback((...args)=>callbackRef.current(...args), []); } export { useEventCallback }; //# sourceMappingURL=useEventCallback.js.map