@hashport/react-client
Version:
React Context for hashport bridging operations
9 lines • 345 B
JavaScript
import { useContext } from 'react';
import { HashportApiContext } from '../contexts/hashportApi';
export const useHashportApiClient = () => {
const client = useContext(HashportApiContext);
if (!client)
throw 'Hashport Api Client must be used within context';
return client;
};
//# sourceMappingURL=useHashportApiClient.js.map