How do you manage global state in Next.js without external libraries?
Instruction: Discuss strategies for managing global application state in Next.js using React context or other built-in mechanisms.
Context: This question explores the candidate's ability to implement global state management in Next.js applications without relying on external state management libraries.
Updated
Official answer available
Read the opening below, then unlock the full answer and practical guidance.
I would keep state close to its owner and add...