About Github view_component gem (https://github.com/github/view_component) (Here I don't mention component architecture but write directly about view_component gem because for each library, the component architecture will be implemented differently at some point)
Advantages: (See more here: https://github.com/github/view_component#why-should-i-use-components)
(1) Encourage separating logic from views and reside them in a ruby class
(2) Removed the ability to use an instance variable (@) in partial, view_component requires passing variables from outside through new
) => Finding the origin of the variable is easier