A base react-hooks library.
Install @ihccc/hooks
with npm
pnpm i @ihccc/hooks
import { useApi } from '@ihccc/hooks'
function UserList() {
const users = useApi(getAllUser, {
auto: true
});
// ...
}
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
To run tests, run the following command
pnpm run test
To deploy this project run
pnpm run deploy