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 3, you can create reactive components through adapters.
Example
import { useReactive } from "@cfcs/vue3";
export function useReactiveComponent() {
return useReactive(REACTIVE_ADAPTER);
}