Associates Roqueform fields with DOM elements.
import { createField } from 'roqueform';import refPlugin from 'roqueform/plugin/ref';const field = createField({ hello: 'world' }, [refPlugin()]);field.at('hello').ref(document.querySelector('input'));field.at('hello').element // ⮕ Element Copy
import { createField } from 'roqueform';import refPlugin from 'roqueform/plugin/ref';const field = createField({ hello: 'world' }, [refPlugin()]);field.at('hello').ref(document.querySelector('input'));field.at('hello').element // ⮕ Element
Associates Roqueform fields with DOM elements.