5 changed files with 11 additions and 12 deletions
@ -1,5 +1,5 @@ |
|||
class Example extends React.Component { |
|||
static getDerivedStateFromProps(nextProps, prevState) { |
|||
static getDerivedStateFromProps(props, state) { |
|||
// ...
|
|||
} |
|||
} |
|||
|
Loading…
Reference in new issue