It is possible to run LemonadeJS as a module directly in the browser as below.


<div id='root'></div>
<script type="module">
import lemonade from '';

function Component() {
    const self = this;

    self.rows = [
        { title:'Google', description: 'The alpha search engine...' },
        { title:'Bind', description: 'The microsoft search engine...' },
        { title:'Duckduckgo', description: 'Privacy in the first place...' },

    // Custom components such as List should always be unique inside a real tag.
    return `<table cellpadding="6">
        <tbody :loop="self.rows">

lemonade.render(Component, document.getElementById('root'));