🐂 Support for session-tracking

This commit is contained in:
Rishi Ghan
2023-07-26 10:15:07 -07:00
parent a2f8d8b1e8
commit 26fdb6d3a4
7 changed files with 90 additions and 49 deletions

View File

@@ -0,0 +1,11 @@
import React, { createContext } from "react";
export const SocketIOContext = createContext({});
export const SocketIOProvider = ({ children, socket }) => {
return (
<SocketIOContext.Provider value={socket}>
{children}
</SocketIOContext.Provider>
);
};