import { useEffect } from 'react'; | |
import { useRouter } from 'next/router'; | |
export default function Home() { | |
const router = useRouter(); | |
useEffect(() => { | |
router.replace('/trend'); | |
}, []); | |
return null; | |
} | |
import { useEffect } from 'react'; | |
import { useRouter } from 'next/router'; | |
export default function Home() { | |
const router = useRouter(); | |
useEffect(() => { | |
router.replace('/trend'); | |
}, []); | |
return null; | |
} | |