UNPKG

@heymarco/next-auth

Version:

A complete authentication solution for web applications.

20 lines (19 loc) 458 B
// react: import { // react: default as React, } from 'react'; import { // contexts: createContext, // hooks: useContext, } from '../hooks/mock-context.js'; // contexts: const UserContext = createContext({}); // hooks: export const useUserContext = () => { return useContext(UserContext); }; export const UserContextProvider = (props) => { // jsx: return (React.createElement(UserContext.Provider, { value: props.model }, props.children)); };