WebSockets with React, Redux, and Ruby on Rails
Note: all the code for this post can be found here(frontend) and here (backend/rails) Let’s explore how to integrate Rails ActionCable functionality (WebSockets) with a basic chat application using React and Redux (via Redux Toolkit). I’m only including the most relevant snippets of code, please refer to the code in the repo for the entire context. Backend Since I’m using rails as an API endpoint, I’ll create the app using the --api flag....