Content pfp
Content
@
https://opensea.io/collection/dev-21
0 reply
0 recast
2 reactions

Steve pfp
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

Steve pfp
Steve
@stevedylandev.eth
Example usage https://snippets.so/snip/C2v3KU0OYQ
0 reply
0 recast
4 reactions

Tiago pfp
Tiago
@alvesjtiago.eth
please create a small package with this and other utilities for mini apps 🙏 happy to set it up (if you prefer) and contribute
1 reply
0 recast
2 reactions

Christian Montoya 🦊 pfp
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