This repository has been archived on 2023-03-02. You can view files and clone it, but cannot push or open issues or pull requests.
react-rest-request/target/client_hook.js

6 lines
152 B
JavaScript
Raw Permalink Normal View History

2021-06-15 00:11:58 +03:00
import { useRequestContext } from './request_context';
export function useClient() {
const { client } = useRequestContext();
return [client];
}