@rcp/use.fetcher
v2.0.1
Published
async data fetcher
Readme
@rcp/use.fetcher
async data fetcher
Installation
npm install @rcp/use.fetcher
# or use yarn
yarn add @rcp/use.fetcherUsage
import useFetcher from '@rcp/use.fetcher'
function App() {
const [val, setVal, { loading, error }] = useFetcher(() => getAppData(), {}, [])
}API
Related
Authors
This library is written and maintained by 余聪, [email protected].
License
MIT
