diff --git a/website/docs/i18n/i18n-tutorial.md b/website/docs/i18n/i18n-tutorial.md index b7914e87b4..8e621b2810 100644 --- a/website/docs/i18n/i18n-tutorial.md +++ b/website/docs/i18n/i18n-tutorial.md @@ -110,11 +110,17 @@ For any React code you've written yourself: React pages, React components, etc., Locate all text labels in your React code that will be visible to your users, and mark them with the translation APIs. There are two kinds of APIs: -- The `` component wraps a string as a JSX component; +- The `` component wraps a string as a JSX element; - The `translate()` callback takes a message and returns a string. Use the one that better fits the context semantically. For example, the `` can be used as React children, while for props that expect a string, the callback can be used. +:::caution + +A JSX element is an _object_, not a string. Using it in contexts expecting strings (such as the children of [`