3 ms·
Less-Is-More’s JavaScript Framework. The Most Pure and Elegant One
- theajack 3y agoAlins is an extremely elegant js framework. Alins adheres to the 0-API development concept, and its performance, volume, and simplicity are better than vue3 and react. Briefly describe the characteristics or advantages compared to other frameworks: 1. Without vdom, the DOM can be updated at the most fine-grained level, with excellent performance. (The js-framework-bench running score is better than vue3 and react), and both the runtime volume and the compiled product volume are better than both. 2. Adhering to the 0-API development concept, there is no such thing as responsive api and hooks. At the same time, it supports fully responsive data, single data flow, and two-way binding. The code is extremely concise and closest to js. 3. The component only runs once and has no side effects. Components are only used as an organizational form of UI logic, not as a module that needs to be rendered repeatedly during runtime. Finally, post a Counter Program. You can also experience this example online in the Playground [https://alinsjs.github.io/playground/#4 https://alinsjs.github.io/playground/#4]: let count = 1; <button onclick={count++} $mount='#App'> count is {count} </button>; If you don't like {count++} and $mount, the use of native js syntax is also fully supported. let count = 1; document.getElementById('App').appendChild( <button onclick={()=>count++}> count is {count} </button> );
- hi_its_me 3y ago[flagged]