Use components inside props
I have a project where I need to implement localization using MessageFormat. Normally I'd use UseMessageGetter()
, but these components don't have hooks. Solution? Use Message
component!
<Notification title={<Message id="very.interesting.id" />} >
...
</Notification>