UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

1 lines 246 B
exports.__esModule=!0,exports.useUncontrolled=function({value:u,defaultValue:n,finalValue:r,onChange:t=(()=>{})}){const[l,o]=(0,e.useState)(void 0!==n?n:r);if(void 0!==u)return[u,t,!0];return[l,e=>{o(e),null==t||t(e)},!1]};var e=require("react");