react-on-rails
Version:
react-on-rails JavaScript for react_on_rails Ruby gem
18 lines • 718 B
TypeScript
/**
* Render a single component by its DOM ID.
* This is the main entry point for rendering individual components.
* @public
*/
export declare function renderComponent(domId: string): void;
/**
* Render all components on the page.
* Core package renders all components after page load.
*/
export declare function renderAllComponents(): void;
/**
* Public API function that can be called to render a component after it has been loaded.
* This is the function that should be exported and used by the Rails integration.
* Returns a Promise for API compatibility with pro version.
*/
export declare function reactOnRailsComponentLoaded(domId: string): Promise<void>;
//# sourceMappingURL=ClientRenderer.d.ts.map