Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions snaps/get-started/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ export const onRpcRequest: OnRpcRequestHandler = async ({ origin, request }) =>
</TabItem>
<TabItem value="Functions" deprecated>

:::warning
The Functions API is deprecated. Use the JSX API above for new Snaps. This example is kept for
legacy Snaps that still use the function-based custom UI library.
:::

```ts title="index.ts"
import type { OnRpcRequestHandler } from '@metamask/snaps-sdk'
import { panel, text } from '@metamask/snaps-sdk'
Expand Down