How to use forceUpdate() correctly? [duplicate]
问题 This question already has answers here : What's the best way to periodically reload an iframe with React? (2 answers) Closed 6 months ago . I'm trying to periodically reload an iframe but i'm using React so i can't manipulate the DOM directly. It seems like my best option is to use forceUpdate() because the url isn't changing so i can't use a state change to update it (See previous post here What's the best way to periodically reload an iframe with React?). However when i try doing a