in React JS by
What is getSnapshotBeforeUpdate method?

1 Answer

0 votes
by

 Executed right before rendered output is committed to the DOM. Any value returned by this will be passed into componentDidUpdate(). This is useful to capture information from the DOM i.e. scroll position.

...