Hacker News new | past | comments | ask | show | jobs | submit login

What the author is suggesting is something very similar to hyper-dom-expressions[1] as they are used in Solid.js. I've tried using those because they look like a nice vanilla JS solution. What might not be obvious from the start is that all the "reactive" parts of the UI will need to be wrapped with an extra closure, ala `()=>h(...)` sometimes multiple levels deep, otherwise parts of the UI will not get updated when needed. Maybe this is a implementation specific thing to SolidJS but it makes the code look ugly and it was hard to figure out when and where to put the closures. I ended up just using JSX for SolidJS, sometimes you just need to compromise.

[1] https://github.com/ryansolid/dom-expressions/tree/main/packa...




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: