Sharing (1)

Bricks are "reactive" and can be shared

-> synchronization: parents are automatically updated

-> can also have callbacks

 
  UStr str;
  UColor col;

  utextbox( uedit() + str );
  ubutton( col + str )
  udialog( col + uhbox( ...) )

with declarative call-backs

  ubutton( col + str
          + UOn::select   / uset(&col, UColor::red) 
          + UOn::unselect / uset(&col, ucolor("#aabbcc")) 
         );