koval-ui
Version:
React components collection with minimalistic design. Supports theming, layout, and input validation.
3 lines (2 loc) • 336 B
JavaScript
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react"),r=({sortingProp:e,onSortingChange:u})=>{const[t,c]=s.useState(e);return s.useEffect(()=>{c(e)},[e]),s.useEffect(()=>{u(t)},[u,t]),{sorting:t,setSorting:c}};exports.useSorting=r;
//# sourceMappingURL=useSorting.cjs.map