Relative Content

Tag Archive for javascriptreactjsdom

React state does not update in component loaded at runtime

I have a component whose js file I load dynamically into a target repo. I load this the js file at runtime by adding a script tag that points to the file as the page loads.
I also have react state that I want to pass to the component built into the js file such that the component will track the state object.