Last active
June 14, 2018 12:48
-
-
Save spencerfeng/84f579afec16f61e02663b6ef61d07a3 to your computer and use it in GitHub Desktop.
For tutorial: How to use a single instance of Socket.IO in your React app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
const SocketContext = React.createContext() | |
export default SocketContext |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment