Block or Report
Block or report stefann01
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
-
-
usePostQuery.tsx
usePostQuery.tsx 1import React, { useState, useCallback } from "react";
23export const usePostQuery = <BodyData, ResponseData>(
4query: string,
5headers?: HeadersInit
-
React http queries with generic cust...
React http queries with generic custom hook. 1import React, {useState, useEffect} from "react";
23export const useGetQuery = <T,>(
4query: string,
5mapFunction: (rawData: any) => T
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.