It would be beneficial if we could pass inline functions for the selectMessageUI. Observe in the following example that you cannot pass an inline function to selectMessageUi the same way you can for onBlur and onChange:
https://stackblitz.com/edit/react-1lvt8y8d