3 ms·
The O(n^3) is to compute the minimum set of operations to transform one VDOM tree into another VDOM tree. React apparently uses simple heuristics to generate a
by baddox 7y ago
The O(n^3) is to compute the minimum set of operations to transform one VDOM tree into another VDOM tree. React apparently uses simple heuristics to generate a diff in linear time.
https://reactjs.org/docs/reconciliation.html https://reactjs.org/docs/reconciliation.html