Magento 2 – Understanding text/x-magento-init

I try to better understand the concept of text/x-magento-init. I understand that it allows us to define script components which do a certain task, which we then can use as often as we like in any template. I found this example in vendor\magento\module-theme\view\frontend\templates\js\cookie.phtml <script type=”text/x-magento-init”> { “*”: { “mage/cookies”: { “expires”: null, “path”: “<?= $block->escapeJs($block->getPath())…