@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! ⚡
14 lines (13 loc) • 344 B
JavaScript
"use client";
import * as __rspack_external_react from "react";
function usePrevious(value) {
const ref = __rspack_external_react.useRef(void 0);
__rspack_external_react.useEffect(()=>{
ref.current = value;
}, [
value
]);
return ref.current;
}
export { usePrevious };
//# sourceMappingURL=usePrevious.js.map