6 ms·
Uh, the hooks in the new versions literally solved this problem. And is backward compatible although it's somewhat painful if you work with both the class based
by flyingchipmann 5y ago
Uh, the hooks in the new versions literally solved this problem. And is backward compatible although it's somewhat painful if you work with both the class based and hook based base code base at the same time.
But if you use an current opinionated package. Next.js + pure hooks based+ typescript, beats everything on the market by miles. It's not even close.
- Oddskar 5y agoAnd how to do you structure the business logic that is connected via hooks?
- y-c-o-m-b 5y agoWhat is your definition of business logic? Business logic as I know it doesn't belong in the front-end at all. Your business logic should be taken care of on the back-end and your front-end application responsible for displaying the end-result.
- merb 5y agothe same how you would do it in angular, you write a service class or function, you can structure those however you want.
- agrippanux 5y agoYes the answer to the complaints above is Next.js + hooks + Typescript. Absolutely fine if that isn't your cup of tea, but let's not kid ourselves that a solution isn't already available.
- flyingchipmann 5y agoBut the hooks literally solved the logic problem. I know what the complain means as I have worked on old code base. But I don't see anything better than handling cross cutting logic better than hooks. A pure hook based code base is not just the best in browser, but also better any other UI technologies in other platforms I have ever seen. This is my personal opinion. Could you show me a better way?
- steve_adams_86 5y agoI think they actually agree with you, unless my reading comprehension is terrible today (I’m prepared for that to be true)
- flyingchipmann 5y agoMy bad, misread.
- steve_adams_86 5y agoI do it every day :)
- hitekker 5y agoThe person you replied to, agreed with you.
- flyingchipmann 5y agoMy bad, misread.