News for hackers. Stuff that matters.
Re:VanJS: A 0.9KB JavaScript UI framework by taoxin on Thursday December 21, 2023 @07:41PM (#38729331)
Ah.. you need a binding function to wrap the state-derived content into a reactive UI element, see: https://vanjs.org/tutorial#state-derived-child. I made the change in your code to make it work: https://jsfiddle.net/rkfmpx06/1/
Re:VanJS: A 0.9KB JavaScript UI framework by seanlaff on Thursday December 21, 2023 @08:04PM (#38729554)
Oh! I understand, thanks for walking through that. Yes very terse compared to the equivalent react :)