Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Atomic Design Pattern - Business Logic

I am implementing Atomic Design pattern in my project. Just a quick question, in where distinct stage should i put the business logic if i implement atomic design pattern?

like image 799
Agent Droid Avatar asked Feb 25 '26 16:02

Agent Droid


1 Answers

Atoms and Molecules shouldnt have any business logic. Maybe the molecules can have some event handlers for there buttons, but they shouldnt. Organisms can have logic, if needed. But if you really want to implement that pattern, than the container should handle all the logic (pages/templates) so called HOC, higher order components.

If you read more about it, this article helped me a while ago. You could also read the book Atomic Design from Brad Frost, i used it in my master thesis as literature review.

like image 102
liqSTAR Avatar answered Feb 27 '26 07:02

liqSTAR



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!