I have an react component say TEST.TSX , I have compiled the .tsx file to .js and uploaded it to github, so that I can server it over JsDelivr. Can i use the CDN in another react app to utilize the Test component?
I have tried module-fedration, but it requires me to host the remote-app/component containing the (Test component) , I cannot use hosting as its additional cost.
I have tried bundling the NextJS app (having component Test) and utilizing it using the script generated, but failed to use it.
I have tried compiling TEST.tsx to .js file and then utilize it from CDN, but failed to do so, while I was able to use the component using import when I kept the script in an local folder.
I think its not possible, as the react components /react must be compiled before running. Please let me know if you guys have any idea. I cannot use Iframes as well as it requires hosting.
Basically just let me know is their any ways to utilize react components (.TSX/.JSX/.TS/.JS) Files directly from hosted drive locations. (CDNs)