Skip to content

Quickstart page doesn't clarify that the Functions tab uses a deprecated API #2894

Description

@knisaci

Description

The Snaps quickstart page shows two code examples — JSX and Functions.
The "Functions" tab uses panel() and text() from @metamask/snaps-sdk,
which is the older deprecated approach. However, there is no note or warning
telling readers that the JSX approach is preferred and the Functions API
is legacy/deprecated.

Page URL

https://docs.metamask.io/snaps/get-started/quickstart/

Expected behavior

Add a deprecation note or warning on the "Functions" tab making it clear
that JSX is the recommended approach for new Snaps, and that the
Functions-based API is maintained for legacy purposes only.

Why this matters

New developers copying the Functions example may use a deprecated pattern
without realizing it, leading to confusion later.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions