-
-
Notifications
You must be signed in to change notification settings - Fork 117
Baobab options
Christian Alfoni edited this page Mar 5, 2015
·
3 revisions
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.