@codegouvfr/react-dsfr
Version:
French State Design System React integration library
9 lines (8 loc) • 322 B
TypeScript
/// <reference types="react" />
import type { Subscription } from "../StatefulObservable";
/**
* Equivalent of https://docs.evt.land/api/react-hooks
*/
export declare function useObservable(effect: (params: {
registerSubscription: (subscription: Subscription) => void;
}) => void, deps: React.DependencyList): void;