Vitali Zaidman

Sometimes we respond to React element mounts. The first instinct is to useRef & useEffect. But It’s wrong. What you really need is often useCallback.

setRef returned from useCallback

How can you run tests on version X and version Y of a library, with real-world examples of testing React 16 and React 17

React.memo / React.PureComponent usage guide

What’s a Pure Component?

(Official docs: React.PureComponent, React.memo)

What is issue #14099 in React’s repo and how it affects you?

Why do we need useCallback in the first place?

In the official documentation of useCallback it says:

When working remotely, you benefit much more from good working processes and proactive team members and you are punished much more severely for sloppy work processes and personal carelessness

TypeScript support, Custom hooks tracking (like React-Redux’s useSelector), Tracking of all pure components.

TypeScript Support

Typing for all the different scenarios of the library are now supported.

Improved Overall Stability

Tests are now covering more scenarios than ever, including integration with libraries, and there are no significant open issues.

Tracking of all Pure Components

The trackAllPureComponents option makes the library track all pure components.

A key concept of React we tend to forget, quickly explained.

How come a React element’s parent might not be the one who renders it?

Vitali Zaidman

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store