Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions
Steve
@stevedylandev.eth
New favorite reusable component: Link wrapper for mini apps. Allows a child element to be either an <a> tag if there is no frame SDK context and an on click div if there is! Minimal with only React and the frame SDK as dependencies ✨ https://snippets.so/snip/P32YnunfO2
3 replies
2 recasts
27 reactions
Christian Montoya 🦊
@m0nt0y4
in plain JS you could just have a single window.onload method that replaces the URL of every <a> with an onclick handler that uses the SDK openURL if the SDK is available. But this is fine too.
0 reply
0 recast
2 reactions