Packages
React inside Phoenix LiveView — async code splitting, client-side props diffing, and zero-config component discovery.
Retired package: Release invalid - Not production-ready, LiveView 1.0.x compatibility issue
Current section
Files
Jump to
Current section
Files
assets/virtual-react-phx.d.ts
declare module "virtual:react-phx" {
import type { ComponentType } from "react";
const hooks: { ReactHook: any };
export default hooks;
export const components: Record<string, () => Promise<{ default: ComponentType<any> }>>;
}
declare module "virtual:react-phx/server" {
export const render: (
name: string,
props: Record<string, unknown>,
slots: Record<string, string>,
) => Promise<string>;
}