@startupjs/react-sharedb
TypeScript icon, indicating that this package has built-in type declarations

0.55.8 • Public • Published

startupjs react-sharedb

Run ShareDB in React

What it does

  1. Brings real-time collaboration to React using ShareDB;
  2. Uses Racer to add a model to your app to do any data manipulations;
  3. The model acts as a global singleton state, so you can use it as a replacement for other state-management systems like Redux or MobX;
  4. Makes the render reactive similar to how it's done in MobX -- rerendering happens whenever any model data you used in render changes.

Installation

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.

using react-sharedb in a pure React 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.

Requirements

react: 16.9 - 17

Usage with Hooks

Hooks syntax documentation

Usage with Classes

Classes syntax documentation

License

MIT

(c) Decision Mapper - http://decisionmapper.com

Readme

Keywords

none

Package Sidebar

Install

npm i @startupjs/react-sharedb

Weekly Downloads

389

Version

0.55.8

License

MIT

Unpacked Size

4.39 kB

Total Files

7

Last publish

Collaborators

  • cray0000
  • yska
  • zag2art
  • fctsvirus
  • maestro.sc
  • byshock