Skip to content

Instantly share code, notes, and snippets.

@ifiokjr
ifiokjr / CollaborativeEditor.js
Last active February 17, 2021 07:24 — forked from byrnehollander/CollaborativeEditor.js
Attempt at Remirror + Yjs
import React from 'react'
import useErrorBoundary from 'use-error-boundary'
import styled from 'styled-components'
import { Remirror, useRemirror, useRemirrorContext } from '@remirror/react'
import { YjsExtension } from '@remirror/extension-yjs'
import { IndexeddbPersistence } from 'y-indexeddb'
import { WebrtcProvider } from 'y-webrtc'
import { WebsocketProvider } from 'y-websocket'
import { Doc } from 'yjs'