Skip to content
View abbott's full-sized avatar
🎯
Focusing
🎯
Focusing

Sponsoring

@sindresorhus
@photoprism
@truecharts
Block or Report

Block or report abbott

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

  1. Global state provider using Context ... Global state provider using Context API in React.js
    1
    import { createContext, useContext, useMemo } from 'react';
    2
    import { useLocalStorage } from './local-storage';
    3
    import { getOs, getBrowser } from '@lib/utils';
    4
    import { SITE } from '@data/constants';
    5
    
    
  2. Google Analytics event wrapper in Re... Google Analytics event wrapper in React.js (compatible w/Next.js next/link)
    1
    import { forwardRef, useEffect, memo } from 'react';
    2
    import * as useGA from '@lib/useGA';
    3
    
    
    4
    const Href = forwardRef((props, ref) => {
    5