A library providing full-featured integration of gRPC-Web into React applications. Current stable version 1.0.205 with rapid updates (multiple releases daily). Key differentiators: seamless hooks and components for gRPC-Web streaming, unary calls, and automatic state management. Unlike raw gRPC-Web clients, this library offers React-specific abstractions like useGrpcQuery and useGrpcMutation, reducing boilerplate. Supports TypeScript out of the box. Release cadence is high-frequency with frequent minor patches.
npm install testreactrpcNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows setting up GrpcProvider with a gRPC-Web client and using useGrpcQuery hook to call an echo method.
Pass client prop and use 'clientOptions' if needed.
Replace with useGrpcQuery and set 'streaming: true'.
Ensure you instantiate the client with new before passing.
Use import syntax or migrate to ESM.
Check the generated client methods; method name should match exactly (e.g., 'echo', 'echoMessage').
Wrap your component tree with <GrpcProvider> at the root.
Run 'npm install testreactrpc' and ensure your bundler resolves modules correctly.