mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
24 lines
354 B
JavaScript
24 lines
354 B
JavaScript
class C1 extends React.Component {
|
|
|
|
state = {
|
|
p1: ''
|
|
}
|
|
|
|
static getDerivedStateFromProps(props, state) {
|
|
const { p1: p2 } = state
|
|
}
|
|
}
|
|
|
|
class C2 extends React.Component {
|
|
|
|
state = {
|
|
p1: ''
|
|
}
|
|
|
|
static getDerivedStateFromProps_unmodeled(props, state) {
|
|
const { p1: p2 } = state
|
|
}
|
|
}
|
|
|
|
// semmle-extractor-options: --experimental
|