Rerender a React Application

Share this video with your friends

Send Tweet

Applications aren’t really applications if they don’t change over time to represent changes in the application over time. Normally in React you’ll use state to manage this, but before we get to that, we’ll just call ReactDOM.render on the same element so you get an understanding of what React is doing for you. So we’ll learn how React deals with the new elements you give it, compare it to the previous elements, and make surgical updates to the DOM to give you the fastest and best user experience possible (because updating the DOM is typically the slowest part in the whole process).

srinivasaraogurram
srinivasaraogurram
~ 3 years ago

UseFull commands during the discussion Github Links; https://github.com/kentcdodds/beginners-guide-to-react Command to start a browser npx browser-sync start --server --files "./*.html" --no-open --no-notify --directory

~ 6 months ago

What React is doing here is very cool. I have a question, do other frameworks/libraries also have this feature? Is the virtual DOM the key to make React so popular nowadays?