# react-websocket **Repository Path**: zuocrab/react-websocket ## Basic Information - **Project Name**: react-websocket - **Description**: Easy-to-use React component for websocket communications. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-03-24 - **Last Updated**: 2021-09-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # react-websocket [](https://github.com/mehmetkose/react-websocket/edit/master/README.md) [](https://app.fossa.io/projects/git%2Bgithub.com%2Fmehmetkose%2Freact-websocket?ref=badge_shield) `react-websocket` is a easy-to-use React component for websocket communications. ## Help Wanted Things here are running very slowly as I have a lot of other stuff to take care at the moment so please don't be upset if I don't answer your question or if a PR sits unreviewed for a few days or weeks. Anyone interested in helping it move faster can help by submitting or reviewing PR's and answering each other's questions. ### Installing ``` npm install --save react-websocket ``` ### Usage ```js import React from 'react'; import Websocket from 'react-websocket'; class ProductDetail extends React.Component { constructor(props) { super(props); this.state = { count: 90 }; } handleData(data) { let result = JSON.parse(data); this.setState({count: this.state.count + result.movement}); } render() { return (