DEV Community

Discussion on: Using WebSockets with React.js, the right way (no library needed)

Collapse
jacqueswho profile image
Jacques Nel

So I tried the same approach, but with phoenix sockets. It was messy and hard to implement. Instead I created a middleware for the reducer. It works wonders.github.com/trixtateam/phoenix-to-r...

Collapse
itays123 profile image
Itay Schechner Author

Looks awesome! I starred your repo. This aproach looks great, tho I personally prefer context/hooks over Redux.