Course contentsShow
React
Lesson 302 of 2,3969. Class Components (Legacy Overview)Pro lesson

getDerivedStateFromProps: Syncing State to Props

A static method for rare cases where state must derive from props, and why it's usually an antipattern.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.