State Management

Next.js 15 StarShip Developer Kit implements a hybrid approach to state management, leveraging both server-side and client-side state management patterns.

Developer Kit Implementation: We've intentionally built the developer kit using React's native useState/useReducer for local state and Context API for global state. This approach provides a solid foundation while giving you the freedom to choose your preferred state management solution.

Choose Your Own Path: You can continue with the developer kit implementation or simply install your preferred state management library (like Zustand, Jotai, Redux, etc.) and build upon the existing foundation.

We recommended:
  1. - Start with Server Components for static or server-rendered content
  2. - Use React Query for client-side data fetching and caching
  3. - Implement local state with useState/useReducer or alternatives like Jotai
  4. - Use Context or alternatives like Zustand for truly global state
  5. - Implement Server Actions for all data mutations