This can be done by returning
false in the
shouldComponentUpdate(nextState, nextProps)lifecycle hook. The typical implementation is to do a shallow equality comparison of state and props to the nextState and nextProps, and return
false if all values are equal. This functionality is provided to you out of the box with
Working with the DOM API is hard. React basically gives developers the ability to work with a virtual browser that is faster and more friendly than the real browser. React’s virtual browser acts like an agent between the developer and the real browser.