mirror of
https://github.com/github/codeql.git
synced 2026-03-29 11:48:16 +02: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
|