I create beautiful and robust user interfaces.
Pinned Loading
-
-
-
-
schema-fixer
schema-fixer PublicA node library to "repair" data from external sources
TypeScript 15
-
validate forms hook
validate forms hook 1import { useCallback, useMemo, useState } from 'react';
23const useValidator = <T extends Record<string, string>>(validator: () => T) => {
4const [errors, setErrors] = useState<Partial<T>>({})
5 -
breakpoints hook
breakpoints hook 1import { useCallback, useMemo, useEffect } from 'react'
23export const useBreakpoints = <T extends Record<string, number>>(breakpoints: T): keyof T | undefined => {
4const searchBreakpoint = useCallback((breakpoints: { key: string, value: number }[]) => {
5return breakpoints.find((x) => window.innerWidth < x.value)?.key
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.