React in patterns
github.com
React in patterns
1–10 of 52 posts
Re: React in patterns
#2Re: React in patterns
#3Thanks for sharing this, we were just looking for something like it after struggling with some of the concepts in React.
Re: React in patterns
#4Thanks for sharing :)
Re: React in patterns
#5Re: React in patterns
#6I am struggling a little with Flux, everyone has their own implementation of it. I mean that is grand, but what does it actually mean for me? Contextless. Thanks for sharing :)
Re: React in patterns
#7I am struggling a little with Flux, everyone has their own implementation of it. I mean that is grand, but what does it actually mean for me? Contextless. Thanks for sharing :)
Re: React in patterns
#8 export default wire(Title, ['title'], function resolve(title) {
return { title };
});
Now I have to register "title" somewhere. Where is it registered? Did I remember to register it? I no longer know what's going on just by looking at the file in front of me, and my linter is silent. Then I have to annotate the function and declare it in the argument list. Items will be added and removed from the two lists as the app evolves, introducing more mental overhead and increased surface area for bugs, since once again my linter will have nothing to say on the topic.Surely I'm in the minority given how popular Angular was, but I felt "DI" was the absolute worst thing about Angular's approach—basically a DSL layered over JS requiring yet more specialized tooling. The ability to look at just one file and understand it goes hand-in-hand with static analyzability, and I'd hate for the React community to abandon that and go down this path.
[edit] In the spirit of not dwelling on the negative, I should also say I did find most of the article to be a good summary of design patterns. Nice job!
Re: React in patterns
#9Can you add regular javascript versions of the patterns rather than only es6?