You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
440 B

import React, { useState } from "react";
const AuthContext = React.createContext();
// function AuthContextProvider() {
// const [user, setUser] = useState();
// const provider = ({ children }) => (
// <AuthContext.Provider
// value={{
// user,
// setUser,
// }}
// >
// {children}
// </AuthContext.Provider>
// );
// return [user, setUser, provider];
// }
export { AuthContext };