Skip to main content
Version: 11.x

Function: createTRPCReact()

createTRPCReact<TRouter, TSSRContext, TFlags>(opts?): CreateTRPCReact< TRouter, TSSRContext, TFlags >

Type parameters

ParameterDefault
TRouter extends Router< AnyRouterDef< AnyRootConfig >, TRouter >-
TSSRContextunknown
TFlagsnull

Parameters

ParameterType
opts?CreateTRPCReactOptions< TRouter >

Returns

CreateTRPCReact< TRouter, TSSRContext, TFlags >

Source

packages/react-query/src/createTRPCReact.tsx:306


Generated using TypeDoc and typedoc-plugin-markdown