Mode:
Duration:
1
Coding works best on desktop or with an external keyboard.
Coding works best on desktop or with an external keyboard.
Counter increments/decrements by a step value.
<step-counter>
<h2>Counter: {state.count}</h2>
<button onclick={() => state.count += state.step}>+</button>
<button onclick={() => state.count -= state.step}>-</button>
<button onclick={() => state.count = 0}>Reset</button>
<script>
export default {
state: { count: 0, step: 2 }
}
</script>
</step-counter>Riot.js is a lightweight, client-side JavaScript framework for building web applications with a component-based architecture. It combines simple syntax, a virtual DOM, and reactive data binding to create maintainable, modular UI components.
Origin & Creator
Created by Muut and first released in 2014.
Industrial Note
Riot.js is ideal for developers seeking minimalistic, performant frameworks for modular web apps without the overhead of larger frameworks like React or Angular.