Skip to content

Instantly share code, notes, and snippets.

@greaveselliott
Created June 22, 2019 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greaveselliott/65d3dfe369936e764a90ea257ad91ff8 to your computer and use it in GitHub Desktop.
Save greaveselliott/65d3dfe369936e764a90ea257ad91ff8 to your computer and use it in GitHub Desktop.
import React, { createContext, useReducer, useDebugValue } from "react";
import reducer from "./reducer";
export const Store = createContext();
const initialState = {
list: []
};
export function StoreProvider(props) {
const [state, dispatch] = useReducer(reducer, initialState);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment