UNPKG

@guruhotel/aura-hooks

Version:

🪝 Hooks library designed by the Guruhotel team for Aura UI

1 lines 347 B
exports.__esModule=!0,exports.getInputOnChange=t,exports.useInputState=function(n){const[r,o]=(0,e.useState)(n);return[r,t(o)]};var e=require("react");function t(e){return t=>{if(t)if("function"==typeof t)e(t);else if("object"==typeof t&&"nativeEvent"in t){const{currentTarget:n}=t;"checkbox"===n.type?e(n.checked):e(n.value)}else e(t);else e(t)}}