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