UNPKG

@croquet/react

Version:

React bindings for Croquet

7 lines (6 loc) 373 B
import { ReactModel } from '..'; /** Hook that gives access to the Model specified by an id of this croquet 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 useModelById<M extends ReactModel>(id: string): M | null;