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

Related content

React Component Design Tips & Tricks
React Component Design Tips & Tricks
More like this
Frontend Handbook
Frontend Handbook
Read with this
Patterns with React Hooks & Context (compared to Redux)
Patterns with React Hooks & Context (compared to Redux)
More like this
Decoupled Frontend Architecture
Decoupled Frontend Architecture
Read with this
Day 2, Session 1
Day 2, Session 1
More like this
Frontend Working Group
Frontend Working Group
Read with this