diff --git a/src/withTranslation.js b/src/withTranslation.js index a2a43c588..a9ead87ac 100644 --- a/src/withTranslation.js +++ b/src/withTranslation.js @@ -26,7 +26,7 @@ export function withTranslation(ns, options = {}) { I18nextWithTranslation.WrappedComponent = WrappedComponent; - const forwardRef = (props, ref) => ; + const forwardRef = (props, ref) => React.createElement(I18nextWithTranslation, Object.assign({}, props, { forwardedRef: ref })); return options.withRef ? React.forwardRef(forwardRef) : I18nextWithTranslation; };