Re:Introducing Hooks
by paultannenbaum on Thursday October 25, 2018 @03:04PM
(#18303611)
While I do agree that higher order components are not the most beginner friendly pattern, to state that they are being used just to avoid classes completely misses the points of why they are used. They are a functional pattern that help one create pure components.
[ Parent
| on HN ]
Yup! they can be tested separately and introduce a separation of concerns that is much better than a "simple" class that "just has everything in it". (Which usually leads to mounds of copy-paste code)