@tracktor/react-utils
v1.16.4
Published
React data table and react data grid
Downloads
1,384
Maintainers
Readme
Tracktor React Utils
A React utils library
Installation
yarn add @tracktor/react-utils
Usage
import { useInputState } from "@tracktor/react-utils";
const App = () => {
const [value, onChange] = useInputState("");
return (<input type="text" value={value} onChange={onChange}/>);
}
Hook
useLocalStorage()
useIsMounted()
useIntersectionObserver()
useDebounce()
useToggle()
useScript()
useInputState()
useIsomorphicLayoutEffect()
useDocumentTitle()
useWindowSize()
useEventListener()
Utils
isArray()
isObject()
isRef()
isBoolean()
isNumber()
isString()
isFunction()
removeObjectProperty()
capitalize()
capitalizeWords()
Adapter
addressToString()
formatCreditCardNumber()
getInitials()
priceAdapter()