Skip to main content

useReactive

useReactive<Instance,State,Methods,Props,Events>(reactiveAdapter: ReactiveAdapterParam<Instance, State, Methods, Props, Events>, props: (() => Props)): ReactiveResult<Instance, State, Methods, Events>

Parameters

reactiveAdapter

ReactiveAdapterParam<Instance, State, Methods, Props, Events>

props

(() => Props)

Description

In Vue 2, you can create reactive components through adapters.

Example
import { useReactive } from "@cfcs/vue2";

export function useReactiveComponent() {
return useReactive(REACTIVE_ADAPTER);
}