UNPKG

@multisynq/react

Version:

React bindings for Multisynq

7 lines (6 loc) 362 B
import { ReactModel } from '../ReactModel'; /** Hook that gives access to the root Model of this Multisynq session. * Can be used to read Model properties (including other referenced Models), * and to publish events to the Model or to subscribe to Model events using the other hooks. */ export declare function useModelRoot<M extends ReactModel>(): M | null;