diff --git a/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-external.js b/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-external.js index efdb0d43d6..fce2b964c2 100644 --- a/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-external.js +++ b/canvas_modules/common-canvas/src/common-canvas/svg-canvas-utils-external.js @@ -30,6 +30,10 @@ export default class SvgCanvasExternal { return React.isValidElement(el); } + isReact18OrHigher() { + return Number(React.version.split(".")[0]) >= 18; + } + addNodeExternalObject(node, i, foreignObjects) { const jsx = (