Other React Lifecycle Methods | Class Components in React tutorial

Описание к видео Other React Lifecycle Methods | Class Components in React tutorial

🎓 View our courses: https://scrimba.com/links/all-courses

In this video, we look at some other, more rarely used, React lifecycle methods.
shouldComponentUpdate() - tells React whether or not to update a component.
getDerivedStateFromProps - allows you to get derived state from props. Note: it is rare that you will need this.
getSnapshotBeforeUpdate() - tells React to record the data in the DOM between render cycles.

Комментарии

Информация по комментариям в разработке