Skip to content

IhcccJS/hooks

Repository files navigation

@ihccc/hooks

A base react-hooks library.

NPM version NPM downloads dumi

Documentation

Documentation

Installation

Install @ihccc/hooks with npm

  pnpm i @ihccc/hooks

Usage/Examples

import { useApi } from '@ihccc/hooks'

function UserList() {
  const users = useApi(getAllUser, {
    auto: true
  });

  // ...
}

Run Locally

Clone the project

  git clone https://@ihccc/hooks

Go to the project directory

  cd hooks

Install dependencies

  pnpm install

Start the server

  pnpm run dev

Running Tests

To run tests, run the following command

  pnpm run test

Deployment

To deploy this project run

  pnpm run deploy

License

MIT

About

A base react-hooks library.

Resources

License

Stars

Watchers

Forks

Packages

No packages published