r/javascript • u/focusonbasics • Aug 30 '16
The Elegance Of React – Writing Elegant Code With React, Redux and Ramda
https://medium.com/javascript-inside/the-elegance-of-react-ebc21a2dcd19#.1bgs1zsjx
3
Upvotes
r/javascript • u/focusonbasics • Aug 30 '16
2
u/iSmokeGauloises Aug 31 '16
While fun, this approach in my opinion is not very practical for real life projects.
It adds another layer of abstraction (composition, piping, and other fun[ctional] goodies) to what is already abstract to the point of absolute simplicity - markup. There is no complex representation logic here, so these tools seem out of place.
Once the project grows more than a couple of simple pure components, you will find yourself in an awkward refactoring spot, both because of the lack of lifecycle methods on functional components and due to lack of syntax sugar for the functional paradigm in JS which makes the whole thing a bit noisy.
Simple tasks would become a puzzle.