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
Hey, this is intentional, as the t function is supposed to always return simple string. In contrast, T component always returns JSX.Element, so the intention is to express different usecases for these two primitives.
This is what is stated in the documentation, and works successfully:
However, this gives a type error with the equivalent
useTranslate
hook:It seems that the
DefaultParamType
does not acceptJSX.Element
types:The text was updated successfully, but these errors were encountered: