1.0.3 • Published 7 months ago
@lilib/hooks v1.0.3
Hooks
React hook library.
Features
- Supports React 16.8+, 17+ and 18+.
- Supports SSR.
- Supports React StrictMode.
- Supports network requests.
- Provides 50+ hooks.
Install
npm install --save @lilib/hooks
Example
import React from "react";
import { useLoad } from "@lilib/hooks";
function Example() {
const {data, error, loading} = useLoad(() => {
return fetch('/users/0').then(response => response.json())
})
...
}
Document
https://lilibraries.github.io/hooks/
Hooks
License
Code licensed MIT, docs CC BY 4.0.