5 lines
115 B

class Example extends React.Component {
static getDerivedStateFromProps(nextProps, prevState) {
// ...
}
}