export const Content = { id: 'Content', init() { app.initState({ data: { stock: 'We have these foods in stock;', foods: [ {name: 'Bananas'}, {name: 'Candy'}, {name: 'Oranges'}, {name: 'Vegetables'}] } }, true); }, // UX.js one-way attribute bindings can be attached, such as :loop render: () => `

Content

{{stock}}

`, }; const fun = () => { globalThis.handleClick = (text) => { alert(text); } }; // Subscribe app.setFun(fun);