Optimizing React Rendering (Part 1)
Dounan Shi
3865

For a quick and dirty reduction in wall-time and wasted renders, you can use lodash’s isEqual in your shouldComponentUpdate. It turns out that isEqual first tries to do a shallow equality check, and only dives as deep as it needs to to establish equality. In many (most?) cases, isEqual will be faster than a virtual dom/diff.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.