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

8 lines
190 B
JavaScript

class Component extends React.Component {
constructor(props) {
super(props);
this.state = {};
this.updater = function(){this.state.title = 'new title';};
}
}