An open API service indexing awesome lists of open source software.

https://github.com/ofhouse/react-patterns

Pattern library for React
https://github.com/ofhouse/react-patterns

codesandbox learning-by-doing patterns react typescript

Last synced: about 1 month ago
JSON representation

Pattern library for React

Awesome Lists containing this project

README

        

# React Patterns

In this repository I collect patterns which I found useful when programming with [react](https://reactjs.org/) and [typescript](https://www.typescriptlang.org/).
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](https://codesandbox.io/s/github/ofhouse/react-patterns). Enjoy! 🤗

## Contents

### Game Programming Patterns

_These are patterns which are derived from the example implementations from the book [Game Programming Patterns](https://gameprogrammingpatterns.com/)._


  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](https://github.com/ofhouse)
[Website](https://felix.house/) • [Twitter](https://twitter.com/ofhouse)|
| :---: |

## License

MIT - see [LICENSE](./LICENSE) for details.