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.
Description
The Notifications feature page shows two code examples that use inconsistent
styles without explaining why.
snap_notifyexample (Step 2) uses plain JavaScript.(
<Box>,<Text>) with no explanation that JSX is required forexpanded 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
contentfield requires JSX (or the functions-based equivalent),and link to the Custom UI docs for context.