GithubHelp home page GithubHelp logo

alexgalays / kaiju Goto Github PK

View Code? Open in Web Editor NEW
89.0 89.0 13.0 4.97 MB

Fast Virtual DOM components with Reactive updating

License: MIT License

JavaScript 75.94% HTML 0.24% TypeScript 21.89% CSS 1.92%

kaiju's Introduction

kaiju's People

Contributors

alexgalays avatar alx-l avatar dagatsoin avatar sco-zen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kaiju's Issues

Fullpage application problem

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.

Simplify Message vs DefaultMessage

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')

snabbdom subtree render

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?

Integrate jsx

Do you have any plans to integrate JSX into this project (I think that can increase the popularity of this framework)?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.