1 min readAug 17, 2018
They’re exactly the same. Internally a functional component is wrapped in a class component. You can optimize the component by applying pure
from recompose (bonus section at the bottom of the article). It prevents a re-render unless any of the props change.