How to force React to reload an image file?

Posted by Editorial Staff | Updated on

How to force React to reload an image file? I think that’s because of the browser cache. try adding some hash like date.now() after image URL changes. for example:

and in render:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers