Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
taoxin
on Dec 22, 2023
|
parent
|
context
|
favorite
| on:
VanJS – A no-JSX framework based on vanilla JavaSc...
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/
seanlaff
on Dec 22, 2023
[–]
Oh! I understand, thanks for walking through that. Yes very terse compared to the equivalent react :)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: