PsyTask | API Docs
    Preparing search index...

    Variable adapterConst

    adapter: ComponentAdapter = ...

    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),
    );