Genesis
This commit is contained in:
7
src/contexts/SocketContext.js
Normal file
7
src/contexts/SocketContext.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import React from 'react';
|
||||
|
||||
// Create a new context for Socket.IO
|
||||
const SocketContext = React.createContext(null);
|
||||
|
||||
export const SocketConsumer = SocketContext.Consumer;
|
||||
export default SocketContext;
|
||||
Reference in New Issue
Block a user