Skip to content

Instantly share code, notes, and snippets.

View nateabele's full-sized avatar

Nate Abele nateabele

View GitHub Profile
@nateabele
nateabele / Posts.10.js
Last active March 20, 2019 20:47 — forked from beardedtim/Posts.10.js
Forked in response to this article: https://medium.com/let-s-learn/lets-learn-composing-react-components-with-ramda-5db457997554 — I'm not sure I translated the code 100% correctly, but, you get the idea.
/**
* This is a forked and annotated example. I think it gets a lot of stuff right in terms
* of best practices on composition.
*
* There are a few things that I think could be better organized... that doesn't mean that
* the author is wrong; the things I'm calling out probably aren't even related to the point
* of the article.
*
* One of my issues with React is that it encourages decomposition for no good reason, which
* just makes your UI harder to maintain because you have to piece together dozens of tiny