Skip to content
项目

关于

一组值得掌握的 ReactJS 编程模式。

其他项目

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

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

探索相关项目

加载中…