1415 Views
TL;DR: The short answer is getSnapshotBeforeUpdate can't be implemented with Hooks. However, the more interesting question is why not? And what can we learn from implementing this ourselves? It's been over a year since the introduction of Hooks and it's no surprise they have been widely adopted by the React community.
0 comments