Take the State Management with Next.js tutorial at pronextjs.dev. There you'll find:
- Video explanations for each challenge and solution.
- Transcripts
- Text explanations
- Pre-configured Gitpod editor links for online coding
The tutorial discusses the following state management options:
Clone this repo to work locally, or follow exercise links from the tutorial exercise pages to GitPod editors.
Each subdirectory corresponds to a section of the tutorial. Inside of each subdirectory, you'll find an OBJECTIVE.md file to refresh your memory for the challenge goals.
In most cases, the starting point for each section is the solution from the previous section:
01-starting-pointcontains the starting point for the tutorial.02-cart-contextcontains the application with basic React Context implementation.03-cart-context-with-initial-statecontains the application with initial state from the server.04-complete-react-statecontains the application with completed React state management.05-cart-with-reduxcontains the application with a partial implementation of Redux for state management.06-complete-reduxcontains the application with a complete Redux implementation.07-complete-zustandcontains the application with complete Zustand implementation for state management.08-complete-jotaicontains the application with complete Jotai implementation for state management.
