Passing AbsoluteSize of a Frame down Roact?

Using Roact, RoactRodux, and Rodux, I want to create a pseudo-TopBar that contains a MessageBar frame. The MessageBar frame should resize itself accordingly to the TextBounds of the message it’s displaying. While scripting this I came across an issue that I’m not sure how I should approach.

The end goal is to resize the MessageBar frame to the TextBounds of the message (in this case, a TextLabel child) it’s displaying. To reach this goal I’ve decided to use the GetTextSize method of TextService, however, its fourth parameter requires the AbsoluteSize of the MessageBar frame. The problem is that the MessageBar frame is created in Roact using the createElement method, and I’m unsure how to reference the MessageBar frame (to actually read its AbsoluteSize and pass it to the GetTextSize method)

I’ve tried using Roact’s built-in Ref feature, however, I’m unsure how to pass the ref down to my ModuleScript to actually read it.

P.S. Does anyone have the Discord invite to the Open Source Scripting Discord server? I’d like to discuss my issue there and learn more about Roact. I’m currently learning how to use Roact+Rodux however my only resource is the very-limited documentation and Roblox’s public CoreScripts.

Cheers!