
Unhandled Runtime Error
Error: useParams only works in Client Components. Add the "use client" directive at the top of the file to use it. Read more: https://nextjs.org/docs/messages/react-client-hook-in-server-component
방법
// 👉 'use client' 추가
'use client'
import { useEffect } from 'react'
export default function Page() {
useEffect(() => {
console.log('in useEffect')
})
return <p>Hello world</p>
}