I created a version of @callback that lets you write clientside callbacks using the same python syntax you would regularly use to build regular serverside callbacks.
from better_dash_callback import callback
@callback(
Output("output", "children"),
Input("input", "value"),
clientside=True
)
def update_output(value):
return f"You entered: {value}"