There was an error while loading. Please reload this page.
RaguDOM aims to fetch remote components from Ragu Server.
npm install ragu-dom
All you need to do is to register the ragu custom element:
const {registerRaguComponent} = require("ragu-dom"); registerRaguComponent();
The script above required transpilation.
If you don't want to setup the webpack by yourself, you can just use the jsdelivr CDN.
<script src="https://cdn.jsdelivr.net/npm/ragu-dom@latest/ragu-dom.js"></script> <script> RaguDOM.registerRaguComponent(); </script>
You can just render a remote ragu component by adding this code fragment at you HTML.
<ragu-component src="https://ragu-cart-vuejs.herokuapp.com/components/cart"></ragu-component>