How to get a block from template file phtml in Magento 2?

If you need to call a template block news.phtml of Ests_News, please use the below code:

echo $this->getLayout()
          ->createBlock('Ests\News\Block\News')
          ->setTemplate('Ests_News::news.phtml')
          ->toHtml();

How to get a block from template file phtml in Magento 2?expoundsofttechsolution


Get three-layer categories in magento 2