@types/react-i18next
Advanced tools
Changelog
7.3.2
Changelog
7.0.0
Starting with v7.0.0 Trans component per default won't add a parent div around content passed as children. It will just return it's children.
You still got the option to set a parent if you prefer content being wrapped.
If you prefer wrapping for all your Trans components (or for backwards compatibility) you can set option react.defaultTransParent
to an element on i18next init.