React Utility Library
transmish
is a collection of components, hooks, and
functions for supporting front-end development in React.
These are meant to be simple and reusable abstractions
over tasks that React developers do on a regular basis.
transmish
is not a component library in the sense of
Bootstrap or Material. Its components are almost entirely
lacking in CSS, but rather focus on common behaviors
in UIs. transmish
also provides hooks, types and constants
for a variety of common UI use cases.
Run npm install transmish
or yarn add transmish
.
import { useEffectOnMount, Hideable, useIntersectionObserver } from "transmish";
- Hideable
- ScrollOnStateChange
- ScrollToTop
- useAsyncEffect
- useEffectOnMount
- useIntersectionObserver
- useInterval
- useBooleanState
- Install all dependencies with
yarn install
. - Run
yarn build
to check types and compile the code to JavaScript and*.d.ts
files. - Run tests with
yarn test
. To generate a coverage report runyarn test --coverage
. Code in this repo should have close to 100% coverage. - View documentation by running
yarn storybook
from the project root. The Storybook documentation should open in a new browser window.