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/
https://jsfiddle.net/397fb684/