DEV Community

Discussion on: Does functional programming have any advantage in real environments?

Collapse
 
neifranci profile image
NeilFranci • Edited

As a Junior Front-end, I see people nowaday use FP in React more than Class thing. Because it make me write less code, easy understandable hooks thing. But 60% answer from stack overflow is class thing on 2019-2021. And React docs also show Class thing instead of function. Time will change, but maybe some old project from some random company still use class and the dev just too lazy to rewrite whole thing to Function base and hooks. And because in javascript function are also like object so I don't mess with Class anymore in mylife for javascript.

Collapse
 
codewander profile image
codewander

Interestingly, someone recently noted to me that the beta react docs highlight hooks more