Simple React Patterns | Lucas Reis' Blog


140 bookmarks. First posted by kuhmist october 2017.


I've been writing React applications for a few years now, and I've noticed that some patterns tend to repeat themselves. In this post, I'll review these patterns which will summarize about 99% of the React code I write every day.
react  coding  development  javascript 
december 2017 by tobi_s
We always need to define a view for the loading state and a view for the error state.

For a better workflow and simpler, more testable and more maintainable code, we need to separate the logic and the view.

So, what are the cons of HOCSs? The first painful one is that every view that will be used with the HOC has to understand the shape of the props passed.
designpatterns  react.js  javascript 
november 2017 by jacklittleton
I've been writing React applications for a few years now, and I've noticed that some patterns tend to repeat themselves. In this post, I'll review these patterns which will summarize about 99% of the React code I write every day.
React 
november 2017 by 1luke2
Dealing With Side-Effects In React
I've been writing React applications for a few years now, and I've noticed that some patterns tend to repeat themselves. In this post, I'll review these patterns which will summarize about 99% of the React code I write every day.
architecture  react 
november 2017 by eduardoportilho
I've been writing React applications for a few years now, and I've noticed that some patterns tend to repeat themselves. In this post, I'll review these patterns which will summarize about 99% of the React code I write every day. via Pocket
IFTTT  Pocket 
november 2017 by tkhwang
On HOC, Provider, Etc Patterns
article  reactjs  pattern 
november 2017 by artish
“Regular React components work well most of the time, but it's better to try separating logic from view. If you need to reuse logic for different view components, use HOCs or Render Props. If the logic involves expensive side effects that should only run once, use a provider.”
react  javascript 
november 2017 by leereamsnyder
Simple React Patterns Dealing With Side-Effects In React I've been writing React applications for a few years now, and I've noticed that some patterns tend to…
from instapaper
november 2017 by stingh711
Favorite tweet:

Exploring Some Simple React Patterns: https://t.co/gVeEHyVsGz

— React Status ⚛ (@reactdaily) November 10, 2017
IFTTT  Twitter 
november 2017 by jorgemir
I've been writing React applications for a few years now, and I've noticed that some patterns tend to repeat themselves. In this post, I'll review these patterns which will summarize about 99% of the React code I write every day.
react  javascript 
november 2017 by Sergey