12 lines
201 B
JavaScript
12 lines
201 B
JavaScript
import { createContext } from "react";
|
|
|
|
const global = {
|
|
gameId: undefined,
|
|
ws: undefined,
|
|
name: "",
|
|
chat: []
|
|
};
|
|
|
|
const GlobalContext = createContext(global);
|
|
|
|
export { GlobalContext, global }; |