Hello, anyone has any advice how I can trigger a script reload?
I have an element in a React TSX file that changes dynamically depending on screensize. My script (public/theme.js) can detect the element on first load, but when I resize my screen and the dynamically generated element appears, it is not detected by the script. So, I need to force reload the script everytime my screen size change.