🚢
Shipping
- Bristol
-
21:33
(UTC -12:00) - linkedin.com/in/codebycarlos
- @codebycarlos
Block or Report
Block or report codebycarlos
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
withPreventDefault
withPreventDefault 1/**
2* A higher-order function that wraps a given function with a call to
3* `preventDefault` on the event.
4*/
5export function withPreventDefault<T extends (...args: any[]) => any>(
-
debounce
debounce 1/**
2* Creates a debounced function that delays invoking `func` only for subsequent
3* calls within the `debounceDelayMs` period after the first call.
4*
5* - `func`: Function to debounce. Can be asynchronous.
-
connectRouter
connectRouter 1import type { ReactElement, ComponentType } from "react";
23import { useLocation, useNavigate, useParams } from "react-router-dom";
45export type Router = {
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.