minca
ApiReactFunctions

Function: MincaProvider()

function MincaProvider(props): ReactElement;

Defined in: packages/react/src/context.ts:62

Makes Minca available to every component below it, so they ask for what they need — useNode(), useQuery(space, …) — instead of having it passed down.

<MincaProvider connection={connection}>   // an app, through an account home
<MincaProvider auth={auth}>               // the home itself

Parameters

ParameterType
propsMincaProviderProps

Returns

ReactElement

On this page