Adapter to use VanJS to create scene
import { adapter } from '@psytask/components';import van from 'vanjs-core';const { div } = van.tags;const vanjsStim = adapter((props: { text: string }) => // node content will auto update when props.text changes div(() => props.text),); Copy
import { adapter } from '@psytask/components';import van from 'vanjs-core';const { div } = van.tags;const vanjsStim = adapter((props: { text: string }) => // node content will auto update when props.text changes div(() => props.text),);
Adapter to use VanJS to create scene