A curated collection of must-know React patterns for building scalable, maintainable, and efficient React applications.
This repository showcases essential React patterns with practical examples and explanations. Perfect for developers looking to level up their React skills.
- Compound Components
- Modals
- React Query
- Simple queries
- Custom queries
- Selectors
- Parameterized queries
- Pagination
- Disabling queries
- Prefetching
- Infinite queries
- Query key factories
- Simple mutations
- Query invalidation
- Automatic query invalidation
- Global error handling
- Optimistic updates in UI
- Optimistic updates in cache
- TanStack DB
Btw you can find detailed explanations and examples in this YouTube playlist.
Contributions are welcome!
Feel free to open a Pull Request or a GitHub issue!
MIT