Skip to main content

Overview

React Together makes it incredibly easy to add real-time collaborative features to your React applications. With just a few hooks, you can synchronize state across multiple users, create live cursors, build real-time chat, and much more.

✨ Easy to Use

Simple hooks that work like built-in React state

🚀 No Backend Required

Built on Multisynq infrastructure - just add your API key

🎯 Real-time Sync

Automatic synchronization across all connected users

⚡ Fast Setup

Get collaborative features working in minutes

Quick Example

Here’s how easy it is to create a synchronized counter:
That’s it! This counter will stay synchronized across all users in real-time.

Installation

Install React Together using your preferred package manager:

Basic Setup

1. Get Your API Key

Get API Key

Sign up for free at multisynq.io to get your API key

2. Wrap Your App

Wrap your React app with the ReactTogether provider:

3. Use React Together Hooks

Now you can use React Together hooks anywhere in your app:

Core Hooks

useStateTogether

Synchronize state across all users - works just like useState:

useConnectedUsers

Get information about all connected users:

useCursors

Display live mouse cursors for all users:

Configuration Options

ReactTogether Provider Props

string
required
Your Multisynq API key from multisynq.io/coder
string
required
Unique identifier for your app (e.g., “com.example.myapp”)
object
Session configuration options
string
Session name to join. If not provided, will auto-generate from URL parameters.
string
Optional session password for private rooms
object
Information about the current user
string
Display name for the current user
string
Color to represent this user (for cursors, etc.)

Example with All Options

Complete Examples

Real-time Todo List

Live Drawing Canvas

Next Steps

Explore All Hooks

Discover all available React Together hooks

Pre-built Components

Use ready-made collaborative components

UI Library Integration

Integrate with Ant Design, PrimeReact, and more

Examples & Demos

See React Together in action

Troubleshooting

  • Verify your API key is correct
  • Check that all users are in the same session (same appId and session name)
  • Ensure the ReactTogether provider wraps all components using hooks
  • Get your API key from multisynq.io/coder
  • Make sure you’re not hitting rate limits
  • Check your network connection
  • React Together is built with TypeScript and provides full type safety
  • Import types when needed: import type { CursorData } from 'react-together'

Community & Support

Discord Community

Join our active Discord for support and to share what you’re building

GitHub

Star the repo, report issues, and contribute

Twitter

Follow for updates and announcements

Documentation

Full documentation and interactive examples
React Together makes building collaborative React apps incredibly simple. With just a few hooks, you can add real-time features that would normally require complex backend infrastructure. Get started today and build something amazing!