diff --git a/src/utils/transpile/errorBoundary.js b/src/utils/transpile/errorBoundary.js index 71294f67..de56a2d8 100644 --- a/src/utils/transpile/errorBoundary.js +++ b/src/utils/transpile/errorBoundary.js @@ -7,7 +7,11 @@ const errorBoundary = (Element, errorCallback) => { } render() { - return typeof Element === 'function' ? : Element; + return typeof Element === 'function' ? ( + + ) : React.isValidElement(Element) ? ( + Element + ) : null; } }; };