Const
Use VanJS component
Wrap a component with reactive props
import van from 'vanjs-core';const { div } = van.tags;const Component = adapter.wrap((props: { text: string }) => // node content will auto update when props.text changes div(() => props.text),); Copy
import van from 'vanjs-core';const { div } = van.tags;const Component = adapter.wrap((props: { text: string }) => // node content will auto update when props.text changes div(() => props.text),);
Use VanJS component