DEV Community

Discussion on: ⚛️ Applying Strategy Pattern in React (Part 1)

Collapse
 
itswillt profile image
Will T. • Edited

By no means in the article am I suggesting that you should put most of your domain business logic in the client side. This is actually a contrived example of how the Shotgun Surgery can happen within a codebase and how the Strategy Pattern helps to solve it. In a frontend application, you will have a lot of application logic regardless, so the Shotgun Surgery is bound to happen if you're not mindful.