16:37:38shinmeraRadiance is not a Javascript framework. It only handles server-side stuff. If you want client-side scripting, you have to do that with Javascript.
16:38:10shinmeraso aside from what you have there you could emit, say, a script tag which does the updating and whatnot.
16:38:59shinmeraand/or you could use some JS ui framework like Vue or whatever else is popular these days.
16:59:19shinmeraalternatively you can store the state on the server side. in that case the button would take you to another link that increases the value and redirects back. then you'd render out a page with the updated value.
16:59:37shinmerain that case you don't need any javascript, but, well, you'd be storing the data on the server
16:59:45shinmerathis may or may not be what you want, I don't really know.