Skip to content

Commit 22b8334

Browse files
author
patched.codes[bot]
committed
Patched /Users/codelion/Documents/GitHub/stack/docs/fern/docs/pages/sdk/stack-provider.mdx
1 parent 493166e commit 22b8334

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
title: StackProvider
3+
---
4+
5+
# StackProvider
6+
7+
A React component that provides Stack context to its children.
8+
9+
## Parameters
10+
11+
- `children`: `React.ReactNode` - The child components to be wrapped by the StackProvider.
12+
- `app`: `StackClientApp<true>` - A Stack client app instance.
13+
14+
## Example
15+
16+
```tsx
17+
import { StackProvider } from '@stackframe/stack';
18+
import { app } from './stackConfig';
19+
20+
function App() {
21+
return (
22+
<StackProvider app={app}>
23+
{/* Your app components */}
24+
</StackProvider>
25+
);
26+
}
27+
```
28+
29+
This component wraps your application with the necessary Stack context, enabling access to Stack features in child components.

0 commit comments

Comments
 (0)