Problem adding existing react component as custom component

I have an existing react code build which I want to use as custom component in my Retool app. The documentation depicts writing react code within ReTool but I want to use my existing react component. When I add the code from HTML page into IFrame Code section of custom component - a blank section is displayed and an error appears in browser console saying: Uncaught TypeError: r.nmd is not a function

We have a self-hosted version of ReTool.

Hi @saurabh.manchanda , Is r.nmd from your own code? Did you import React at the beginning of your iFrame script?

Can you share more information?