Skip to content

Tracktor/react-utils

Repository files navigation

Tracktor React Utils

npm version

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()

Convention

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages