Skip to content
RED SAGSkills
medium10 pts · first answer countsnextjsreact-server-components

useState in a Server Component

In the Next.js App Router, a component file in app/ uses useState and the build fails saying it only works in a Client Component. What is the right fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions