Why Should I Care About Immutable Data In ReactJS?

See More

Add Widget ); } }); // --------------------------------------------------------------------------- // // --------------------------------------------------------------------------- // // I manage the Widgets collection. var Widgets = React.createClass({ // I return the virtual DOM based on the current state. render: function() { var widgets = this.props.widgets.map( function operator( widget ) { return( ); }, this ); return(