import React, { createContext, useContext, useReducer } from 'react'; // Prepare a dataLayer export const StateContext = createContext(); // Wrap our app and provide the Data layer export const StateProvider = ( { reducer, initialState, children } ) => ( { children } ); // Get information from the data layer export const useStateValue = () => useContext( StateContext );