How is getSnapshotBeforeUpdate implemented with Hooks? Blog

added by JavaScript Kicks
11/21/2019 1:22:07 PM

432 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