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:
- - Start with Server Components for static or server-rendered content
- - Use React Query for client-side data fetching and caching
- - Implement local state with useState/useReducer or alternatives like Jotai
- - Use Context or alternatives like Zustand for truly global state
- - Implement Server Actions for all data mutations