erste
erste.js is a zero-hype view library with an attitude. It’s built for achieving maximum performance on mobile devices.
Find erste on GitHub.
dashersw/ersteerste - Your first choice for hybrid mobile applicationsgithub.com
Features
- Lightweight, 10kb minified & gzipped
- No dependencies
- No magic — as declarative as it should be and no more
- No pitfalls — use good old DOM APIs, HTML5 & CSS3 to build modern apps
- Clean, structured and approachable API
Overview
// 1. Import erste,
import {Component} from 'erste';
// 2. Create your application,
class App extends Component {
constructor() {
super();
this.counter = 0;
}
// 3. Arrange your view,
template() {
return `
<div>
<h1>${this.counter}</h1>
<button class="increment">Increment</button>
<button class="decrement">Decrement</button>
</div>
`;
}
// 4. Create your methods,
increment() { this.$('h1').innerText = ++this.counter; }
decrement() { this.$('h1').innerText = --this.counter; }
// 5. Bind your events.
get events() {
return {
'tap': {
'.increment': this.increment,
'.decrement': this.decrement
}
}
}
}
// 6. Make your application run.
new App().render(document.body);
erste.js has a lot more to offer in terms of application development. You can check out the various built-in components — such as the navigation bar, the tab bar and more — and learn how you can make use of the advanced features. Make sure to try the demo over at erste.js-demo to see it all in action.