Skip to content

Function: PlasmaProvider()

PlasmaProvider<S, M>(__namedParameters): ReactNode

Defined in: react/src/context.tsx:23

Puts a PlasmaClient on React context so nested hooks can find it. Typically wrap your app once at the root:

<PlasmaProvider client={client}>
<App />
</PlasmaProvider>

S extends Record<string, AnyTable>

M

PlasmaProviderProps<S, M>

ReactNode