Sourced from react-i18next's changelog.
17.0.15
- fix(Trans): empty paired component tags now preserve a component's single valid React-element child, whether supplied through a named component map (
<wrap></wrap>), a component array (<0></0>), or indexed JSX children (<1></1>). This matches the existing behavior for two or more children and self-closing tags. React represents one JSX child as an element and multiple children as an array; the previous array-only check silently rendered the one-child case empty. Compatibility note: when that sole element contains an interpolation object, the restored raw children can expose an existing React rendering limitation as an error instead of silently rendering empty; the same shape already errors with two children. Fixes #1932.
7d38e09
17.0.15875b327
fix(Trans): preserve single-element children in empty slots