Skip to content

youssefbenlemlih/react-patterns

Repository files navigation

Awesome React Patterns

A curated collection of must-know React patterns for building scalable, maintainable, and efficient React applications.

Introduction

This repository showcases essential React patterns with practical examples and explanations. Perfect for developers looking to level up their React skills.

Patterns

  • 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.

Contributing

Contributions are welcome!

Feel free to open a Pull Request or a GitHub issue!

License

MIT

About

A collection of must-know ReactJS coding patterns.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •