-
Accolade
- Seattle
Highlights
- Pro
Block or Report
Block or report benhorst
Report abuse
Contact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abusePinned
-
-
pre-push
pre-push 1#!/bin/bash
23master="refs/heads/master"
45read local_ref local_sha remote_ref remote_sha
-
simple localstorage sync script with...
simple localstorage sync script with comments and notes 1import { useEffect, useState } from "react";
23// a quick example of "enhancing" the localstorage sync
4// in order to use it like a specialized store.
5// you're obviously going to get worse perf than a regular React.createContext, but you get some benefits.
-
Simple KeyStore React Context (and p...
Simple KeyStore React Context (and provider) 1import { createContext, useReducer } from 'react';
23const reducer = (initialValue) => (state, { type, key, value }) => {
4switch (type) {
5case 'SET_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.