Skip to content
View madflanderz's full-sized avatar

Block or report madflanderz

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. eslint-plugin-makestyles eslint-plugin-makestyles Public

    Eslint plugin to ensure the name is set inside makeStyles function.

    JavaScript 5

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