Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
React in 33 lines – further musings (leontrolski.github.io)
2 points by leontrolski on April 6, 2020 | hide | past | favorite | 2 comments


Stage0 doesn't have to look so gnarly, if you are not doing diffs but just updating directly. This web app I've been working on doesn't look so bad[^1]. Note that I made part of the library compile time and part of it is runtime just to eek out a bit more performance (which doesn't really matter, but hey, JS is expensive, right?).

On library which I was looking at recently which would make Stage0 even look a little cleaner is [Strudel](https://strudel.js.org/). If you did something like that with Stage0 it would look really clean and then you just have the update method in your class that you call on updates.

[^1]: <https://github.com/jon49/MealPlanner/blob/master/src/meal-pl... and <https://github.com/jon49/MealPlanner/blob/master/src/meal-pl...





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

Search: