Functional React. Is it possible?

added by JavaScript Kicks
10/29/2018 5:15:46 AM

1377 Views

Here is our Farm Component, written as a class. I've exaggerated a bit to prove a point - how often are you actually implementing shouldComponentUpdate ?- but otherwise it's a pretty typical component. And this is the same component, written functionally. Note that I use some helpers from the aforementioned library, recompose.


0 comments