Skip to content

Notifications page switches code style without explanation (plain JS to JSX) #2895

Description

@knisaci

Description

The Notifications feature page shows two code examples that use inconsistent
styles without explaining why.

  • The basic snap_notify example (Step 2) uses plain JavaScript.
  • The "Expanded view" example immediately below uses JSX components
    (<Box>, <Text>) with no explanation that JSX is required for
    expanded view content.

This is confusing for new developers who don't understand why the two
examples look so different.

Page URL

https://docs.metamask.io/snaps/features/notifications/

Suggested fix

Add a brief note before the expanded view example clarifying that the
content field requires JSX (or the functions-based equivalent),
and link to the Custom UI docs for context.

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