/simple-react-socket.io-example

A simple example of how to implement socket.io with React and Node

Primary LanguageJavaScript

simple-react-socket.io-example

Intro

A super simple example of how to implement socket.io with React (CRA) and Node.

Setup

  1. Clone the repo
  2. Open /client in terminal and run yarn && yarn start
  3. Open /server in terminal and run yarn && yarn start
  4. Open http://localhost:3000 in a few tabs or different devices
  5. Click button

Files to note