onefinestay / react-daterange-picker

Other
563 stars 208 forks source link

Add shouldComponentUpdate to reduce the wasted time #139

Closed joseph1125 closed 5 years ago

joseph1125 commented 8 years ago

I was working on a page written in React, when I use React Perf to monitor performance, I found that this component wastes quite a lot of time. I recommend adding shouldComponentUpdate to reduce the wasted time and make the re-render much faster.

image

AlanFoster commented 8 years ago

@joseph1125 Thanks for the heads-up. Mind putting up a quick PR for this? :+1: