Yeah, if it depends on the app being there (which as it’s the test bundle, I assume yes, that’s going to be important) then it won’t work because the script is before any of the HTML (and the HTML rendered by the app). There’s nothing there when the script runs, so it’s not going to be able to do anything (EDIT: open the console and look for errors that refer to something being null that the script is trying to access, that’s normally the clue). So either put it at bottom, just before the closing body tag, or add defer to it so that it won’t run until the DOM is ready – <script src="path/to/test/stuff" defer></script> (see Scripts: async, defer for an overview of why you use this).
but there is something else, how can i add a online CDN to react so i can reference the methods in my app.
i’m trying to use the Renderer method from this CDN markedown library
i’m suppose to use it on my app like this const convert = new marked.Renderer(); renderer.link = function (href, title, text) { return ${text}; };