Run
ShareDB
inReact
- Brings real-time collaboration to React using ShareDB;
- Uses Racer to add a
model
to your app to do any data manipulations; - The
model
acts as a global singleton state, so you can use it as a replacement for other state-management systems likeRedux
orMobX
; - Makes the
render
reactive similar to how it's done inMobX
-- rerendering happens whenever anymodel
data you used inrender
changes.
It's recommended to just use startupjs
package, since it proxies the API of @startupjs/react-sharedb
.
You don't need to install anything if you are in a StartupJS project.
If you want to use react-sharedb
separately from StartupJS in a pure React project, refer to the following issue. You'll also need to manually setup the sharedb
on your server following its readme instructions. Make sure you use the same sharedb
and racer
versions as used in react-sharedb
, you can check for duplicates using yarn list sharedb racer
.
react: 16.9 - 17
MIT
(c) Decision Mapper - http://decisionmapper.com