/remote-dom

Primary LanguageJavaScriptMIT LicenseMIT

Build Status Coverage Status

remote-dom AKA Virtual Virtual DOM

Run React&ReactDOM / Vue.js inside a WebWorker or Node.js server and render to a remote DOM inside a browser elsewhere.

LocalDOM

A simple library that applies DOM manipulations it is fed via a channel on specific containers + sends events back

RemoteDOM

A minimal implementation of the write APIs DOM (createElement/createTextNode/addEventListeners etc...) which serializes the imperative commands invoked on it and sends it over a channel

Together they let you write to a DOM that isn't local to your execution context in a way that should be mostly transparent to you as long as you never read from the DOM For example this currently supports React rendering from WebWorkers, by simply providing a mounting point i.e., a RemoteDOM container.