React book - shouldComponentUpdate

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

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:

1 Like

yes thx

1 Like