const [loaded, setLoaded] = useState(false)

return (
<div>
	{!loaded ?
		<button onClick={()=>{
			setLoaded(!loaded)
		}}>
			{props.title || "Click me"}
		</button>
		 :
	 <iframe height="400px" width="100%" src={props.src}></iframe>
  }
</div>
)