All Projects → danburzo → React Recipes

danburzo / React Recipes

Licence: mit
React Recipes & Patterns.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to React Recipes

Reason Design Patterns
🗺 An unofficial collection of "design patterns" for Reason and OCaml
Stars: ✭ 379 (+340.7%)
Mutual labels:  patterns, recipes
Random
Generate random strings or numeric values
Stars: ✭ 68 (-20.93%)
Mutual labels:  patterns
Tram Policy
Policy Object Pattern
Stars: ✭ 16 (-81.4%)
Mutual labels:  patterns
Php8 Design Patterns
Design patterns written in PHP 8
Stars: ✭ 63 (-26.74%)
Mutual labels:  patterns
Gopie
go patterns
Stars: ✭ 28 (-67.44%)
Mutual labels:  patterns
Tradestation
EasyLanguage indicators and systems for TradeStation
Stars: ✭ 65 (-24.42%)
Mutual labels:  patterns
Go Concurrency Patterns
Concurrency patterns in Go
Stars: ✭ 724 (+741.86%)
Mutual labels:  patterns
Cocoa Biscuit Cake With Marshmallow Cheese Creme
Yes. It's a recipe. For a cake. Sort of.
Stars: ✭ 77 (-10.47%)
Mutual labels:  recipes
Fast Glob
🚀 It's a very fast and efficient glob library for Node.js
Stars: ✭ 1,150 (+1237.21%)
Mutual labels:  patterns
Apex Domainbuilder
Framework to setup Apex test data in a highly flexible and readable way using the Test Data Builder pattern.
Stars: ✭ 61 (-29.07%)
Mutual labels:  patterns
React In Patterns Cn
React in patterns 中文版
Stars: ✭ 1,107 (+1187.21%)
Mutual labels:  patterns
Recipes
A super minimal recipe website built on Markdown
Stars: ✭ 38 (-55.81%)
Mutual labels:  recipes
Go Pattern Examples
Examples of implement for awesome go patterns including usual design patterns, in easy understanding examples.
Stars: ✭ 65 (-24.42%)
Mutual labels:  patterns
Text adventure
Practice Design Patterns through implementing a text based adventure game
Stars: ✭ 10 (-88.37%)
Mutual labels:  patterns
Patterns
Complete catalog of all classical patterns in the Archimate language
Stars: ✭ 70 (-18.6%)
Mutual labels:  patterns
Go Patterns
Design patterns in Golang
Stars: ✭ 788 (+816.28%)
Mutual labels:  patterns
Vegan recipes
100% vegan recipes
Stars: ✭ 46 (-46.51%)
Mutual labels:  recipes
Ex Navigation Recipes
The idea is to provide a list of useful snippets for ex-navigation
Stars: ✭ 65 (-24.42%)
Mutual labels:  recipes
Architecture Center
Azure Architecture Center
Stars: ✭ 1,207 (+1303.49%)
Mutual labels:  patterns
Designpatterns
DesignPatterns samples by csharp on dotnetcore 《大话设计模式》 中设计模式总结/C#(.NETCore)代码
Stars: ✭ 73 (-15.12%)
Mutual labels:  patterns

React Recipes

Introduction

This repository contains some tried-and-tested ways to work with React that I picked up along the way, and in-depth explanations of how certain aspects of the library work.

The articles assume you have a bit of experience with React, and that you've set it up to use JSX and modern JavaScript features, such as classes and modules. These require a bit of initial setup and although they're not 100% necessary, forgoing JSX and ES6 modules makes for a less-than-stellar development experience. Check out Setting up shop for a quick way to get started on a React project with all the goodness baked in.

I mostly discuss the plain React API. Some articles do however point to useful libraries and tools when they're easy to pick up and don't introduce too many new concepts. The articles rarely touch on aspects of React style, such as naming, indentation, using arrow functions, et cetera. You can enforce a consistent style in your project with Prettier, and supplement it with the Airbnb React/JSX Style Guide.

Finally, but most importantly, these articles reflect my current understanding of how React works. While I strive to give the clearest picture possible, some aspects may still be inaccurate, out of date, or just plain Bad Ideas. Sorry in advance, I'm trying my best! If you spot any errors or dubious claims, please let me know by filing an issue or a pull request.

Table of contents

First steps

This section is about getting started with React. I hope to expand this section with more introductory articles.

  • Setting up shop walks you through setting up a React project with JSX and modern JavaScript without losing your soul in the process.

Mental models

Life inside a component

This section is about how to build strong React components.

Class components

Function components

Hooks

Notes on the various hooks available in React.

Built-in hooks
Custom hooks

The component and the outside world

This section discusses how our component can interact with things outside its boundaries.

How components talk to each other

In this section we explore some patterns of communication between components, and how to combine them like Lego bricks to build up our app.

Passing data to children

Passing children to components is one of the basic ways to compose our application's element tree. A component that receives children it knows little about may want to share information with them nonetheless. The React API affords a few related methods to do that.

Special-purpose components

The React API allows us to write some useful generic components for our app.

  • Error Boundaries will stop a component that crashed from breaking your whole app.

Performance

Further reading

The official React website has comprehensive guides, tutorials, and links to useful tools. React has one of the best documentations around. Spend a fortnight reading the guides cover to cover and you'll get a much firmer grasp on how to use React efficiently.

On his Overreacted blog, Dan Abramov goes on interesting deep-dives into how React works under the hood.

Then there are other React pattern repositories you might find interesting:

Finally, some assorted articles from around the web:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].