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

useState in an App Router page

In a Next.js App Router project, a component in app/cart/page.tsx uses useState and an onClick handler, and the build fails. What is the usual fix?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions