### Steps to Reproduce 1. Create an `xt.input()` component with a lambda function for handling events (e.g., `on_input`). 2. Run the application. 3. It will display `TypeError` related to JSON serialization of the lambda function.