Does Pure compoent is the best solution to use to prevent useless render?


(Slim Hmidi) #1

Hi, I figured in my app that there so many useless render in the components. I search through the net and some persons recommend to use Pure components , shouldComponentUpdate and many other options to prevent the useless rendering.However, when should I use for example Pure component and not shouldComponentUpdate. The problem how can I know when to use the suitable option to use?