Hacker News new | ask | show | jobs
by Oddskar 1690 days ago
And how to do you structure the business logic that is connected via hooks?
2 comments

What 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.
the same how you would do it in angular, you write a service class or function, you can structure those however you want.