LiveAttribute makes binding updateable values easier. To use it add it to your LiveView using use LiveAttribute and then use the function assign_attribute(socket, subscribe_callback, property_callbacks) to register attributes.
use LiveAttribute
assign_attribute(socket, subscribe_callback, property_callbacks)