1.3.5-beta.1 • Published 4 years ago

@vincecao/use-tools v1.3.5-beta.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

use-tools

A group of reusable custom hooks for making react developer life easier.

npm version npm checks

HooksDescription
usePromiseStateRetrieving data from a remote by a promise function and use it like useState.
useTimeoutConnecting setTimeout into React state world.
useShuttleA hook returns a new shuttled list for each unique given array.
useFetchA convenient wrapper for $fetch function. React implementation of useLazyFetch from Nuxt3 API.

Example

Please check more examples at below links

Installation

# latest
# npm
npm i @vincecao/use-tools
# yarn
yarn add @vincecao/use-tools

# beta
# npm
npm i @vincecao/use-tools@beta
# yarn
yarn add @vincecao/use-tools@beta

This package is automatically published in NPMJS and GITHUB npm registry.

To install package from Github npm registry, add below file in your repo before run npm i or yarn add.

# .npmrc
@vincecao:registry=https://npm.pkg.github.com

You can also install directly from current repo master

# npm
npm i vincecao/use-tools
npm i github:vincecao/use-tools

# yarn
yarn add vincecao/use-tools
yarn add github:vincecao/use-tools

Release Method

  • When a Pull Request is merged to the master, Github Actions will create and publish a beta version.
  • When a Release is created with a new tag version, Github Actions will create and publish a stable version.

Running live example

yarn
yarn start

cd example
yarn
yarn start
1.6.1

3 years ago

1.6.0

3 years ago

1.3.7

4 years ago

1.3.6

4 years ago

1.3.5

4 years ago

1.5.2

4 years ago

1.3.4

4 years ago

1.5.1

4 years ago

1.3.3

4 years ago

1.5.0

4 years ago

1.3.2

4 years ago

1.4.0

4 years ago

1.3.1

4 years ago

1.3.4-alpha.1

4 years ago

1.3.4-alpha.0

4 years ago

1.3.6-beta.0

4 years ago

1.3.5-beta.0

4 years ago

1.3.4-beta.0

4 years ago

1.3.3-beta.1

4 years ago

1.3.1-beta.1

4 years ago

1.3.5-beta.1

4 years ago

1.3.3-beta.0

4 years ago

1.3.2-beta.0

4 years ago

1.3.4-beta.4

4 years ago

1.3.4-beta.3

4 years ago

1.3.4-beta.2

4 years ago

1.3.4-beta.1

4 years ago

1.3.4-beta.5

4 years ago

1.3.8

4 years ago

1.3.1-beta.0

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago