Closed chiouchu closed 8 years ago
If you can use immutable data in performance-critical parts of your application it's easy to implement a fast shouldComponentUpdate() method to significantly speed up your app. https://facebook.github.io/react/docs/update.html
Or "normalize" and flatten state: https://github.com/paularmstrong/normalizr https://github.com/reactjs/redux/issues/316
Normalizr is used to handle repeated and deep json data. So I choose Immutable.js (https://facebook.github.io/immutable-js/) to handle my json.
If you can use immutable data in performance-critical parts of your application it's easy to implement a fast shouldComponentUpdate() method to significantly speed up your app. https://facebook.github.io/react/docs/update.html
Or "normalize" and flatten state: https://github.com/paularmstrong/normalizr https://github.com/reactjs/redux/issues/316