Const
VanJS reactive system
import van from 'vanjs-core';const { div } = van.tags;const Component = adapter.mark((props: { text: string }) => // div content will auto update when props.text changing div(() => props.text),);const { props, nodes, data } = adapter.render(Component); Copy
import van from 'vanjs-core';const { div } = van.tags;const Component = adapter.mark((props: { text: string }) => // div content will auto update when props.text changing div(() => props.text),);const { props, nodes, data } = adapter.render(Component);
VanJS reactive system