UNPKG

@wttech/graal-bridge-react

Version:

React entrypoint for Graal integration

11 lines (10 loc) 431 B
import { ComponentType } from "react"; export default class GraalBridgeReact { private readonly registry; constructor(); register(name: string, renderFunction: (props: string) => string): void; registerReact(name: string, componentType: ComponentType<any>): void; registerReactStatic(name: string, componentType: ComponentType<any>): void; render(name: string, props: string): string; expose(): void; }