Skip to content

[question]: Is there any way to use a component inside a message? #59

Open
@SanichKotikov

Description

@SanichKotikov

Hi,

Is there any way to use a component inside a message? Something like how it works in react-intl or lingui.

<Text
  id='some.id'
  defaultMessage='Some message with <link>link text</link> in the middle.'
  link={<CustomLink to='...' />}
  // or link={(text) => <CustomLink to='...'>{text}</CustomLink>}
/>

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions