Created
June 22, 2019 23:09
-
-
Save greaveselliott/65d3dfe369936e764a90ea257ad91ff8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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