How to use Magento 2 ViewModel like a Pro

Likes (3)   Dislikes (0)  

This is just a thing of personal preference how would you like to manage your code and all that. Stop using old school Blocks or Helpers for reading data and providing to PHTML. Use new PSR compatible ViewModels concept instead. Follow the Separation of Concern principle to the fullest. Make your code more readable, maintainable and reusable. Inject your ViewModels via layout and start consuming them from views.