https://github.com/wix-incubator/remote-dom
https://github.com/wix-incubator/remote-dom
perfomance reactjs webworker
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wix-incubator/remote-dom
- Owner: wix-incubator
- License: mit
- Created: 2016-12-07T18:10:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-03-20T07:41:20.000Z (about 3 years ago)
- Last Synced: 2025-04-21T18:56:18.399Z (about 1 year ago)
- Topics: perfomance, reactjs, webworker
- Language: JavaScript
- Size: 566 KB
- Stars: 86
- Watchers: 277
- Forks: 19
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/wix/remote-dom)
[](https://coveralls.io/github/wix/remote-dom?branch=master)
# 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.