7 ms·
Just in case: Sciter has Reactor - its own native and built-in implementation of React. Main difference is that component is instanceof Element - components a
by c-smile 2y ago
Just in case:
Sciter has Reactor - its own native and built-in implementation of React.
Main difference is that component is instanceof Element - components are DOM elements. This allows to unify React and WebComponent under the same umbrella/mechanism. Yet to extend standard DOM methods by use of JSX, so this
someDomElement.append(<div>Hello</div>)
works just fine - appends content from the vDOM.
In fact Reactor is three entities implemented natively:
* JSX - embedded into JS compiler (830 LOC) - https://gitlab.com/c-smile/quickjspp/-/blob/master/quickjs-jsx.h https://gitlab.com/c-smile/quickjspp/-/blob/master/quickjs-j... , produces vDOM literals
* Element.prototype.patch(JSX/vDOM) (420 LOC) - reconciliation / diff implementation
* Binding of lifecycle methods (200 LOC) - componentDidMount and Co.
There is also native implementation of Signal's (310 LOC) but they are optional for React'alike functionality.
- robpruzan 2y agoThis is very cool, first time I'm hearing of Reactor, thanks for sharing
- c-smile 2y agoCheck https://docs.sciter.com/docs/Reactor/ https://docs.sciter.com/docs/Reactor/
- solarkraft 2y agoThis is cool, but how big are the practical advantages (performance?)?