Text input

Click events are atomic, they either happen or did not. For text input an app needs to handle the specific text the user entered.

When a user types in an input box it will emit "on_update" events. This app uses the "UpdateName" message to respond to this interaction.

The UpdateName message is different from the "ClearName" message because it contains a String, which will be the text in the input at that time.

There are many different events available to you and a great resource to find out about them is again Mozilla.

Try doing something with your user data, i.e. print the given name in uppercase. You will need to import the "gleam/string" module