0.0.7 • Published 1 month ago

transmish v0.0.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
1 month ago

transmish

React Utility Library

Motivation

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.

Installation

Run npm install transmish or yarn add transmish.

Usage

import { useEffectOnMount, Hideable, useIntersectionObserver } from "transmish";

Components

  • Hideable
  • ScrollOnStateChange
  • ScrollToTop

Hooks

  • useAsyncEffect
  • useEffectOnMount
  • useIntersectionObserver
  • useInterval
  • useBooleanState

Development

  1. Install all dependencies with yarn install.
  2. Run yarn build to check types and compile the code to JavaScript and *.d.ts files.
  3. Run tests with yarn test. To generate a coverage report run yarn test --coverage. Code in this repo should have close to 100% coverage.
  4. View documentation by running yarn storybook from the project root. The Storybook documentation should open in a new browser window.
0.0.7

1 month ago

0.0.6

1 month ago

0.0.5

4 months ago

0.0.4

9 months ago

0.0.3

1 year ago

0.0.2

1 year ago