Pinned Loading
-
eslint-plugin-makestyles
eslint-plugin-makestyles PublicEslint plugin to ensure the name is set inside makeStyles function.
JavaScript 5
-
useFormik hook
useFormik hook 1import React from 'react'
2import { FormikValues, FormikErrors } from 'formik'
34/** @private is the given object an Object? */
5export const isObject = obj => obj !== null && typeof obj === 'object'
-
Effect to call a function after timeout
Effect to call a function after timeout 1import { useEffect, useRef } from "react"
2/**
3* Runs a timeout after delay ms.
4*
5* @param callback function to execute
-
Simple i18n solution
Simple i18n solution 1import React, { useCallback, useMemo } from "react"
2import LanguageKeysDe from "./de"
3import LanguageKeys, { LangProps } from "./en"
45/**
-
useValueChanged hook
useValueChanged hook 1import { useRef } from 'react'
23function useValueChanged<T>(callback: (value: T) => void, value: T) {
4// save initial value on first call
5const ref = useRef(value)
-
useInterval hook
useInterval hook 1import { useEffect, useRef } from "react"
23function useInterval(callback: () => void, delay: number) {
4const savedCallback = useRef<() => void | undefined>()
5
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.