I was unable to get message grouping to work with the UIKit v3 Beta when using the new renderMessage function. If you return a string it seems to be work, but anything custom and even just a div wrapped around the message string and it wont group (see screenshot).
Perhaps theres a missing portion to the docs with chainTop/Bottom? Some better samples here would help. Thanks!