1.2.12 • Published 2 years ago

ts-use v1.2.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago
  • Animation

    • useAnimationEvents use with animations, it tracks and start and exit animation so component can unmount after exit animation has ended
  • Side-effects

    • useLocalStorage hook for managing local storage. Safe with SSR rendering.
    • useMutationObserver Use mutation Observer with this hook in react. Safe with SSR rendering.
    • usePromiseMap Resolves array of promises within react in a non blocking way.
  • State

    • ReducerProvider Provider to wrap outer components, takes reducer and initial state.
    • withReducerProvider HOC for ReducerProvider Provider to top component.
    • useReducerStore returns state, selector and functions for for updating the state from context
    • useReducerSelector takes selector and returns value similar hooks for providing simple state without using reducer StateProvider, withStateProvider, useStateStore, useStateSelector
    • useReactiveState reactive state that updates with change in initial state
  • Lifecycles

    • useMount hook returns state after first mount, takes optional callback to run, it can be resolved with promise
  • Network

    • useFetch hook for using fetch in React, work on SSR also, as it checks to use node or window fetch, suppoers optional queryBuilder
  • API

  • HOC

    • withHooksHOC Add hooks data to class component.
  • React Native

    • useAsyncStorage hook for managing storage within react native.
1.2.12

2 years ago

1.2.8

2 years ago

1.2.9

2 years ago

1.2.10

2 years ago

1.2.11

2 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago