How to add delay in Reactjs : <p>I am new to Reactjs. I am not sure how to add <code>delay</code> to render in <code>Reactjs</code>.What is the best way to add delay.</p>

<p>I am adding the following code in render but its not working.</p>

<pre><code>setTimeout(function() {

}, 1000);
</code></pre>
