Big Chungus

    Big Chungus

    2 years ago
    message has been deleted
    j

    janvladimirmostert

    2 years ago
    any reason for going the virtual dom route and not the more modern way of doing it?
    Big Chungus

    Big Chungus

    2 years ago
    What would those be?
    j

    janvladimirmostert

    2 years ago
    ES6 has built-in templates, so when you render the template, it does a diff and only re-renders the bits that changed
    some interesting reading here:https://github.com/WebReflection/uhtml#readme
    Big Chungus

    Big Chungus

    2 years ago
    Interesting. Wasn't aware of that. Main reason for VDOM is wasm support. Templates are unfortunately not available on wasm
    j

    janvladimirmostert

    2 years ago
    ok, that makes sense i'll give the template literal thing a go at some point when i get time and see if i can get it working in Kotlin. Using a $ symbol for variables might be tricky unless i have my own parser could be a fun project
    Big Chungus

    Big Chungus

    2 years ago
    Let me know how that goes, sounds interesting!
    j

    janvladimirmostert

    2 years ago
    probably only December, doing other fun stuff first with Multiplatform 1.4