Socket
Socket
Sign inDemoInstall

@startupjs/react-sharedb

Package Overview
Dependencies
Maintainers
6
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@startupjs/react-sharedb

Run ShareDB in React


Version published
Weekly downloads
371
increased by166.91%
Maintainers
6
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 15 Mar 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc