Minimal yet scalable state pattern for reactive web apps with lit-HTML templates | Dark Hacker News