# Ryan Florence - React, Inline Functions, and Performance (Highlights) ![rw-book-cover|256](https://readwise-assets.s3.amazonaws.com/static/images/article2.74d541386bbf.png) ## Metadata **Cover**:: https://readwise-assets.s3.amazonaws.com/static/images/article2.74d541386bbf.png **Source**:: #from/readwise **Zettel**:: #zettel/fleeting **Status**:: #x **Authors**:: [[Ryan Florence]] **Full Title**:: React, Inline Functions, and Performance **Category**:: #articles #readwise/articles **Category Icon**:: 📰 **URL**:: [medium.com](https://medium.com/p/bdff784f5578) **Host**:: [[medium.com]] **Highlighted**:: [[2021-02-11]] **Created**:: [[2022-09-26]] ## Highlights - Since functions are objects and PureComponent does a strict equality check on props, an inline function will always fail the prop diff and move on to the element diff in the reconciler. - For most components, I’d recommend creating a PureComponentMinusHandlers class and inherit from that instead of inheriting from PureComponent. It could just skip all checks on functions. - Use PureComponent and shouldComponentUpdate only when you need to, skipping prop functions (unless they are used in lifecycle hooks for side-effects).