import React, { useEffect, useState } from "react"; import style from './DocPageRedirect.module.css' export default function DocPageRedirect() { const [counter, setCounter] = useState(10) useEffect(() => { setTimeout(() => window.location.href = process.env.REACT_APP_DAGGER_SITE_URI, 10000) setInterval(() => setCounter((prevState) => prevState - 1), 1000) }, []) return (
It seems you don't have the permission to see Dagger's documentation. But don't worry you can request an Eary Access :). You'll be redirect to Dagger website in {counter} seconds
See you soon !