-
- Use [`useOpenUrl()`](/onchainkit/latest/components/minikit/hooks/useOpenUrl) to safely open external websites in the client's in-app browser:
-
- ```tsx components/ExternalLinks.tsx highlight={8 -10}
- import { useOpenUrl } from '@coinbase/onchainkit/minikit';
-
- export default function ExternalLinks() {
- const openUrl = useOpenUrl();
-
- return (
-
-
-
-
-
- );
- }
-
- // Incorrect: Direct HTML link
- // Visit Site
- ```
-
-