본문으로 건너뛰기

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 React, you can create reactive components through adapters.

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

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