1 min readMay 29, 2019
Use pure
from recompose to make sure that your components rerender only when the incoming props have been updated. We use functional components only in production, and with the right approach, there is zero performance impact. True, it is possible to test class components with Enzyme, but testing them is much more cumbersome compared to pure functional components.