frontend/src/helpers/authContext.js

8 lines
160 B
JavaScript
Raw Normal View History

2020-08-21 09:51:52 +00:00
import { createContext, useContext } from 'react';
export const AuthContext = createContext();
export function useAuth() {
return useContext(AuthContext);
}