![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FLxFtQ%2FbtsrIbzX5aa%2FvBo8PphwMErkL1vYtk3zuk%2Fimg.png)
✍️ What I Learned/트러블슈팅
[트러블슈팅] ReactServerComponentsError (feat. Server Component, Client Component)
🚨 발생 문제 Next.js: Failed to compile Failed to compile ./src\app\intro\page.tsx ReactServerComponentsError: You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default. Learn more: https://nextjs.org/docs/getting-started/react-essentials 🤔 문제 원인 useState를 사용하는 컴포넌트에 Client Compo..