How do you update rendered elements?

Posted by Editorial Staff | Updated on

How do you update rendered elements?

You can update UI(represented by rendered element) by passing the newly created element to ReactDOM’s render method.

For example, lets take a ticking clock example, where it updates the time by calling render method multiple times,


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