DEV Community

Discussion on: Why I haven't committed to React (yet)

Collapse
 
itays123 profile image
Itay Schechner

Good luck! The key of modern React is using custom hooks for the component logic, and leaving the functional components for UI (jn my opinion)

Collapse
 
adam_cyclones profile image
Adam Crockett 🌀

I will have to strip away the React terminology as I'm a newbie, kind of, do you mean the secret of good software engineering in the UI is to keep UI and business logic separate and testable? I couldn't agree more! actually I believe that business logic should be standalone agnostic and portable using something like XState as a framework for modeling business logic, in theory you could model the entire app and test it without a UI. Anyway if I'm going to get good at React I will have to learn the terminology