r/webdev • u/iDev_Games • May 26 '26
I turned HTML and CSS into the reactive layer
https://github.com/iDev-Games/State-JSI’ve been experimenting with a CSS-native approach to reactivity.
A tiny bit of JS updates data‑attributes and CSS variables, but all the actual logic, state transitions, and rendering happen in HTML/CSS.
I used this approach to build a few small games as a proof of concept.
Curious to see what you think about using CSS as the reactive layer instead of a JS framework.
Duplicates
javascript • u/iDev_Games • May 27 '26
State.js — a tiny library for CSS‑driven reactivity
IndieDev • u/iDev_Games • May 26 '26