/react-patterns

Pattern library for React

Primary LanguageTypeScriptMIT LicenseMIT

React Patterns

In this repository I collect patterns which I found useful when programming with react and typescript. Some of them are basic implementations of well known patterns rewritten for react usage and some are new pattern which I found on the internet. Please checkout the README for every pattern to see where I found it.

You can check this project out directly on CodeSandbox. Enjoy! 🤗

Contents

Game Programming Patterns

These are patterns which are derived from the example implementations from the book Game Programming Patterns.

  1. Command pattern
  2. Observer pattern

Other patterns

These are patterns which I found useful in private or commercial projects

  1. Accordion pattern
  2. React.useContext pattern

Author


Felix Haus

WebsiteTwitter

License

MIT - see LICENSE for details.