@ihccc/hooks
v0.0.1-alpha.2
Published
A base react-hooks library.
Downloads
1
Readme
@ihccc/hooks
A base react-hooks library.
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