Home > @lynx-js/react > Lynx

Lynx interface

APIs under lynx global variable that added by ReactLynx.

Signature:

export interface Lynx 

Example

lynx.registerDataProcessors(...);
lynx.querySelector(...);
lynx.querySelectorAll(...);

Properties

PropertyModifiersTypeDescription
registerDataProcessors(dataProcessorDefinition?: DataProcessorDefinition) => voidRegister DataProcessors. You MUST call this before root.render().
triggerGlobalEventFromLepus(eventName: string, params: any) => voidAn alias of lynx.getJSModule("GlobalEventEmitter").trigger(eventName, params) only in Lepus