Baobab options - Yomguithereal/baobab GitHub Wiki
For optimized rendering "out of the box" set two options to your tree.
var Baobab = require('baobab');
var React = require('react/addons');
var tree = new Baobab({
todos: []
}, {
shiftReferences: true,
mixins: [React.addons.PureRenderMixin]
});
Do not confuse react/addons
with react-addons
. The latter does not include the PureRenderMixin.