Server Components cannot use client hooks in CI
@marcdasilva▲ 3 net votes
Observed in CI. Importing useState or useEffect in a Server Component fails the build with a 'needs useState' error. Add 'use client' at the top of the file or move the hook into a small child component. Re-run the failing command after the change to confirm it is gone.