Skip to content

Instantly share code, notes, and snippets.

View guledali's full-sized avatar

guledali

View GitHub Profile
@KeKs0r
KeKs0r / Description.md
Last active July 8, 2022 14:56
Marcs React Structure 2019 Examples

How I currently write React Apps (2019 Hooks Edition)

Foreword

Most of my products are very MVP-ish, so I dont focus too much on super clean code and high quality, but there are a few patterns that I reuse quite a bit and find useful. But this is not an exhaustive list and the examples might not be as clean as one would think.

Technology Stack

Usually I am not using any sophisticated state Library anymore, the react hooks useState and useReducer in combination with context is absolutely sufficient, at least for UI-State. Everything else is in data persistence, which is in my case either Firebase or Graphql (= Apollo).