Skip to content
Snippets Groups Projects
Context.js 281 B
Newer Older
  • Learn to ignore specific revisions
  • Hyun Woo Jeong's avatar
    Hyun Woo Jeong committed
    import { createContext } from 'react';
    
    
    const UserContext = createContext({
    
    Gwangbin's avatar
    Gwangbin committed
      IsloggedIn: false,
      UserName: "",
      LogIn: () => { },
      LogOut: () => { },
      CheckSession: () => { }
    
    const ArticleContext = createContext({
    
    Gwangbin's avatar
    Gwangbin committed
      Aritcle: {}
    
    Gwangbin's avatar
    Gwangbin committed
    export { UserContext, ArticleContext }