AcmeProvider
Preact context provider that shares an Acme client with child components.
AcmeProvider#
Preact context provider that shares a client instance with child components.
tsx
<AcmeProvider client={client}>
<Dashboard />
</AcmeProvider>
Props#
| Prop |
Type |
Description |
client |
Client |
Required. Shared Acme client instance |
children |
ComponentChildren |
React/Preact subtree |
See also#