Thorm
Get started
Get Started in 5 minutes
First Page
Your first page
The controller
Header
Hero section
Contact section
The API
Considerations
Docs
Overview
Guides
Intro
Atoms
Node builders
Props helpers
State + expressions
Expression builder
Events + actions
Effects + targets
API
Api
Examples
Roadmap
Blog
Community
Get Started
GitHub
Text Reactive
A minimal counter demo that updates text live when state changes.
Reactive text
Count: 1
Inc
PHP
📄 Copy code
<?php $count = state(1); $app = div([ cls('container') ], [ h1([], [ text('Reactive text')]), p([], [ text(concat('Count: ', read($count))) ]), button([ on('click', inc($count, 1)), cls('btn btn-primary') ],[ text('Inc') ]), ]);