Headless Server Developer Manual / Version 2301
Table Of Contents<script src="dist/full/js/fragment-integration.js"></script> <script> document.addEventListener("DOMContentLoaded", () => { fragmentIntegration.render( "calista", "placement1", document.querySelector("#here"), "" ); }); </script> <div id="here"></div>
Example 14.14. Fragment Integration with a separate DOM Placeholder
<script src="dist/full/js/fragment-integration.js"></script> <div data-cm-react-fragment='{"path":"calista","placement":"placement1", "url": "}'></div>
Example 14.15. Fragment Integration of DOM element with custom data attribute