React book - shouldComponentUpdate


#1

Page 131, shouldComponentUpdate – what is destination variable – it does not appear to be defined anywhere.


#2

The destination variable is something defined at the very top:

var destination = document.querySelector("#container");

You can see it here: https://github.com/kirupa/kirupa/blob/master/reactjs/lifecycle.htm#L22

Does that clarify :slight_smile:


#3

yes thx