/
React Patterns & Examples
React Patterns & Examples
This page serves as a placeholder to document examples and patterns of “good” code that we feel is worthwhile to showcase to others to follow as a “best practice”, convention, or pattern. This may include things in various categories of frontend development such as:
Testing
react-testing-library
enzyme
Common testing patterns
Testing hooks
Testing components that use context and/or the Redux Provider
React Hooks
How to use hooks
How to write hooks
Component design
Component composition
Using React context
Using Redux
And more!
These examples may be in the form of code snippets pasted here, or links to examples in our code repositories, etc.
, multiple selections available,
Related content
Patterns with React Hooks & Context (compared to Redux)
Patterns with React Hooks & Context (compared to Redux)
More like this
React Component Design Tips & Tricks
React Component Design Tips & Tricks
More like this
React hooks - custom and common
React hooks - custom and common
More like this
React Component Testing
React Component Testing
More like this
2024-02-15 Frontend Working Group Meeting Notes: React Query
2024-02-15 Frontend Working Group Meeting Notes: React Query
More like this
React hook and component testing cookbook
React hook and component testing cookbook
More like this