alexgalays / kaiju Goto Github PK
View Code? Open in Web Editor NEWFast Virtual DOM components with Reactive updating
License: MIT License
Fast Virtual DOM components with Reactive updating
License: MIT License
click: myMessage.with({})
then
click: myMessage.with({})
= Two event listeners are registered against the click
event.
I used snabbdom at the moment to build application which able to attach to document.documentElement
. Also this app compatible with server-side rendering. So it renders root page tree starting from html
node. Snabbdom works fine for this case, but I failed to start application using kaiju. The problem of kaiju in that by default it append child to node and don't provide any ways to attach to node itself.
Snabbdom modules parameter when calling startApp is redundant, why not require all the modules and pass them to the snabbdom init instead.
Right now, it's a bit of a mess. The Message type sometimes has to be used, sometimes we need to use DefaultMessage. Same with NoArgMessage(s); all this just to make the type system happy so that dangerous combinations are not used.
This comes down to Bound messages (using with()
) and the fact that some messages will deliver an Array, some others a scalar and there is no way to know which is which at runtime.
In order to fix this, we can abandon Arrays and declare multi arg Messages like so :
const message = Message<number, MouseEvent>('click')
Hi,
I've seen many discussions now about rendering subtrees in snabbdom, and the best lead seems to be kaiju's source code. Is the patching code something that we could extract somehow so it's available to all snabbdom users? I might even be on the wrong track since I'm not that sure of what and how kaiju makes the patching of subtree vNodes. Could you help shed some light for us?
Do you have any plans to integrate JSX into this project (I think that can increase the popularity of this framework)?
The signature prevents it from correctly inferring the callback type.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.