This example demonstrates how you can use SyncedStore to build a collaborative version of the Todo MVC app.
The code that sets up our store is defined in src/store.ts. By using the useSyncedStore
hook, our React components (starting at src/App.tsx) are easy to read and update automatically.
- Open live demo (Of course, open multiple times to test multiplayer)
- Open source on Codesandbox
npm install
npm start
🔥 Make sure to open multiple browsers to see the app syncing automatically.
This project was bootstrapped with Create React App.