Sarah Smith
Feb 16, 2023

--

Brilliant article. I am so over 1000 line long Function Components with 30 useState, useEffect and useRef calls being held up as better than a class because “functional programming”.

Often a class could do the same with less code, and more readability. React is for UI’s. Check React’s home page. It doesn’t say it’s managing entities, or modeling business logic. But that’s what happens in React projects. Fetch every damn thing, chuck it in Redux, and put all the logic in FP’s.

--

--

Sarah Smith
Sarah Smith

Written by Sarah Smith

Sarah Smith is a writer & app developer .

No responses yet