You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's possible to use React.Component to render translation: <Trans render={Component}>...</Trans>, but built-ins can be passed as elements only: <Trans render={<h1 />}>...</Trans>.
Proposal: <Trans render="h1">...</Trans>
It's like 4 chars difference, but nice to have 😸
The text was updated successfully, but these errors were encountered:
Just a small nitpick.
It's possible to use React.Component to render translation:
<Trans render={Component}>...</Trans>
, but built-ins can be passed as elements only:<Trans render={<h1 />}>...</Trans>
.Proposal:
<Trans render="h1">...</Trans>
It's like 4 chars difference, but nice to have 😸
The text was updated successfully, but these errors were encountered: