react-socket.io
A wrapper component connect Socket.io to React.
Installation
npm
npm i reactjs-socket.io --save
Usage
Set Socket Host
;;;const Provider = socketContext;const host = ReactDOM;
Get the socket props on component
;; { superprops; thisstate = color: '' // Get the response from socket server thispropsio // send the data to server thispropsio; } { return <div className="App" style= background: thisstatecolor > </div> ; } App;
Bugs & Contribution
Application should have some bug. Don't worry please commit issue on this project.
Feel free to contribute this open source project. At first fork this project and please let me know what feature you want to develop.