I have created a timeout function for 3 seconds and after that time it is supposed to render the HTML. I'm following the official documentation to do this and the code is like on the documentation. Anyone has had a similar issue?
render() {
return (
<div>
{this.state.activePage === 'Home' ? setTimeout(function () {
<p>Hello World</p>
}, 3000) : null}
</div>
)
}