3 ms·
I've made a few multiplayer games where players need to keep a game state synchronized with the server. I used redux for state and game logic, and it's been rea
by simonbw 8y ago
I've made a few multiplayer games where players need to keep a game state synchronized with the server. I used redux for state and game logic, and it's been really nice to be able to share the reducers between server and client. This made it so all I had to do to keep all clients in sync was share actions across clients as they happened.
I've also found it useful to have TypeScript on client and server to be able to share types between them.
Also, when using React, Node on your server makes server-side rendering a lot easier.