| For the note: Sciter ( https://sciter.com ) implements CalDOM features out of the box. But better. In Sciter DOM and vDOM are equally honored. This CalDOM's (DOM + vDOM population): _("#output-1")
.append(
_("+h1").text("Hello World!")
);
In Sciter is document.$("#output-1")
.append(<h1>Hello World!</h1>)
And this reactive CalDOM: let app = _().react(
{},
{
render: state =>
_( "+h1", `Hello ${state.name}` ) //This is XSS safe
}
)
_("#output-2", app );
//Edit below line to update state
app.state.name = "World Reactively ";
in Sciter is class App extends Element {
name = "unknown";
render() {
return <body><h1>Hello { this.name }</h1></body>;
}
}
document.body.patch(<App />);
document.body.componentUpdate({name:"World Reactively "}); // will invoke render()
|
This blunt dismissal is very rude when you don’t even mention that you are the author of sciter.