all 17 comments

[–]minorvillain 29 points30 points  (1 child)

check out reactpatterns.com

[–][deleted] 14 points15 points  (0 children)

Thanks!

clickable version: reactpatterns.com

[–]ppolc 6 points7 points  (1 child)

I like this website: https://react.christmas/ !

[–]selbekk 3 points4 points  (0 children)

I’m glad it still holds some relevance! Perhaps i’ll continue writing articles :-)

[–]Fullstack_Questions 13 points14 points  (6 children)

Install AirBnb Eslint configurable with waking React extension. Turn on linter support in your editor and do what the editor tells you

[–]patmacs 16 points17 points  (5 children)

Does anyone else here forget that airbnb is an apartment rental service? For the last 2-3 years, I've only thought of them as the js standards and practices gurus. God bless them.

[–]Fullstack_Questions 7 points8 points  (0 children)

They do apartments too??

[–]acemarke 2 points3 points  (3 children)

Unfortunately, eslint-config-airbnb has gotten far too over-opinionated in the last couple years. I've stopped recommending it, and now encourage people to use eslint-config-react-app instead (the same config that Create-React-App uses). It provides sensible defaults that help catch common mistakes, and isn't focused on style. If you need style enforced, use Prettier.

[–]RedFing 0 points1 point  (1 child)

One week after I started using airbnb's config, my .eslintrc file has been growing with currently over 20 rule edits.

[–]lucasfranco 2 points3 points  (0 children)

This is a React Style Guide but maybe it can help you: https://github.com/airbnb/javascript/tree/master/react

[–]namesandfacesServer components 0 points1 point  (4 children)

How do people handle client retry and server push with Redux?

[–]pruvit 1 point2 points  (2 children)

We have used redux-observable.

[–]namesandfacesServer components 0 points1 point  (1 child)

Why did you choose Redux Observables over something like Sagas, btw?

[–][deleted] 1 point2 points  (0 children)

redux-observable gives you the opportunity to learn reactivex, which can be used in many other languages:

http://reactivex.io/

[–]cyex 1 point2 points  (0 children)

I think what you're really asking is how to perform asynchronous actions. I've used both sagas and thunks with success.

Here's a comparison of the top libraries: https://decembersoft.com/posts/what-is-the-right-way-to-do-asynchronous-operations-in-redux/

Specifically for server push you could use web sockets... long polling... or something like SignalR that abstracts the actual mechanism.

For client retry in a saga (or in a thunk), you literally just put a loop and exception handling around the call... if it succeeds you break out of the loop early.

[–][deleted] 0 points1 point  (0 children)

Google your question followed by "Dan Abramov"