async data fetcher
npm install @rcp/use.fetcher
# or use yarn
yarn add @rcp/use.fetcher
import useFetcher from '@rcp/use.fetcher'
function App() {
const [val, setVal, { loading, error }] = useFetcher(() => getAppData(), {}, [])
}
This library is written and maintained by 余聪, yucong@yuanfudao.com.
MIT