dillon1000/react
Commit
Browse files Changed key from Math.random() to todo.cid
It doesn’t make much sense to generate a random key for each todo render, because it will re-draw all todo’s DOM nodes on each model change. I changed it to the unique identifier ``todo.cid`` already supplied by the backbone model.
Changed paths1 file
First-parent comparisonexamples/todomvc-backbone/js/app.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…