3 ms·
Not sure I understand your question. Functional components and class components both use createClass internally IIRC. In any case, they are the same. A PureComp
by korm 9y ago
Not sure I understand your question. Functional components and class components both use createClass internally IIRC. In any case, they are the same. A PureComponent is simply a Component with shouldComponentUpdate written for you. Functional components can't be pure, but you can use an enhancer for them.