An UI Frontend Framework
npm install ui-wall``js`
UI.$("#root").html("Hello!")
Use client-side rendering:
`js`
var csr = new UI.CSR();
///when goes to localhost:3000/p?=hello
csr.add("hello", "Hello World!
")
csr.render();
Or create components:
`js
var d = UI.component({
html: "Hello!
",
css: "color: blue",
click: () => {alert('World!')}
})
`
Changed: Added touchEvents and VNodes
`js`
UI.handleTouch(document.body, (touches) => {
console.log(touches[0].pageX, ";", touches[0].pageY);
})
Use of component with render
`js`
UI.component(props).render("
Fast Routing - replaces anchor event handler
`js`
UI.fastRouting();
- Added UI.modal function
- VNode getAPIData and from` methods added