mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
22 lines
341 B
JavaScript
22 lines
341 B
JavaScript
class C1 extends React.Component {
|
|
|
|
state = {
|
|
p1: ''
|
|
}
|
|
|
|
static getDerivedStateFromProps(props, state) {
|
|
const { p1: p2 } = state
|
|
}
|
|
}
|
|
|
|
class C2 extends React.Component { // $ Alert
|
|
|
|
state = {
|
|
p1: '' // $ RelatedLocation
|
|
}
|
|
|
|
static getDerivedStateFromProps_unmodeled(props, state) {
|
|
const { p1: p2 } = state
|
|
}
|
|
}
|