SHARE
TWEET

Untitled

a guest May 19th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, { createContext } from 'react';
  2.  
  3. import * as constants from './constants';
  4.  
  5. const ExampleContext = createContext();
  6. const { Consumer, Provider } = ExampleContext;
  7.  
  8. const UserProvider = ({ children }) => {
  9.   return <Provider value={{}}>{children}</Provider>;
  10. };
  11.  
  12. const useExampleContext = () => useContext(ExampleContext);
  13.  
  14. export { Consumer as UserConsumer, UserProvider, useExampleContext };
  15.  
  16. export default ExampleContext;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top