Files
codeql/javascript/ql/test/query-tests/React/DirectStateMutation/valid4.js
2018-08-02 17:53:23 +01:00

7 lines
87 B
JavaScript

class Hello {
getFoo() {
this.state.foo = 'bar'
return this.state.foo;
}
}