Write clientside dash callbacks in python

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}"

Hi @ribab
Have you tried more complex client side callbacks ?

I have tried slightly more complex callbacks

Multiple inputs and outputs works

I love the idea!
Do you have examples of callbacks that cannot be translated, i.e. will fail to be translated from Python to JS ?