3 ms·
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 mis
by paultannenbaum 8y ago
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.
- pgrizzay 8y agoYup! 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)