A React utils library
yarn add @tracktor/react-utils
import { useInputState } from "@tracktor/react-utils";
const App = () => {
const [value, onChange] = useInputState("");
return (<input type="text" value={value} onChange={onChange}/>);
}
useLocalStorage()
useIsMounted()
useIntersectionObserver()
useDebounce()
useToggle()
useScript()
useInputState()
useIsomorphicLayoutEffect()
useDocumentTitle()
useWindowSize()
useEventListener()
isArray()
isObject()
isRef()
isBoolean()
isNumber()
isString()
isFunction()
removeObjectProperty()
capitalize()
capitalizeWords()
addressToString()
formatCreditCardNumber()
getInitials()
priceAdapter()