It doesn't change the jsx element after setTimeout call. Not changing the content variable inside section jsx element. Note that I am using section element because it's part of my project.
function Any() {
let content = <p>No movies found</p>;
setTimeout(() => {
content = "";
}, 2000);
return (
<section>{content}</section>
);
}