Add AuthContexts to App.js

This commit is contained in:
Ray 2023-09-19 10:45:59 +00:00 committed by GitHub
parent 54dfacce1d
commit 6464316cb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,9 @@ import { Signup } from "./pages/Signup"
import { Signout } from "./pages/Signout"
import { Signin } from "./pages/Signin"
// contexts
import { AuthContext } from "./contexts/AuthContext"
function App() {

View File

@ -0,0 +1,3 @@
import { createContext } from "react";
export const AuthContext = createContext()