import React, { useEffect } from "react"; import { isAndroid, isIOS } from "react-device-detect"; const App = () => { useEffect(() => { if (isAndroid) { const url = "intent://instagram.com/#Intent;scheme=https;package=com.instagram.android;end"; window.location.replace(url); } else if (isIOS) { window.location.replace("instagram://"); setTimeout(() => { window.location.replace( "https://apps.apple.com/us/app/instagram/id389801252" ); }, 10000); } else { window.location.replace("https://dorento.org"); } }, []); return (
If you have not been automatically redirected, click on the following link:
{isAndroid ? ( Open Android app ) : isIOS ? ( Open iOS app ) : ( Open Web app )}
); }; export default App;