A template script
written in your markup
Put h-scope on an element and a scope starts there. The attributes inside it bind values to the screen. You start with one script tag and no build step.
If you know Vue, you can already read it.
Expressions are plain Vue, and only the prefix is h-. Reactivity comes from Vue's own core library (@vue/reactivity). You write it straight into markup, with no component files and no build.
Related h-model h-for h-show @click
Nothing to declare. A value exists once you use it.
You do not need to write values down in advance. The input value the server rendered becomes the initial value as is. {{ }} in text is read only directly under the element where h-text-inline is set. Here, that is the button.
Related h-scope h-model :disabled h-text-inline
A scope is a boundary. You write down what it receives.
An inner scope does not see outer values on its own. Write what you pass down with h-provide, and what you receive with h-inject. Wherever you insert a fragment, the markup shows what it depends on.
Related h-provide h-inject h-inherit