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.