PK APOCALYPSE V1

APOCALYPSE V1

Current Path : /home/wallqcyy/www/wp-content/plugins/astra-sites/inc/lib/onboarding/assets/src/store/
Upload File :
Current File : /home/wallqcyy/www/wp-content/plugins/astra-sites/inc/lib/onboarding/assets/src/store/store.js

import React, { createContext, useContext, useReducer } from 'react';

export const StateContext = createContext();

export const StateProvider = ( { reducer, initialState, children } ) => (
	<StateContext.Provider value={ useReducer( reducer, initialState ) }>
		{ children }
	</StateContext.Provider>
);

export const useStateValue = () => useContext( StateContext );

if you don't want to be vaporized in a nuclear explosion, i simply have to become nuclear myself… i am atomic