mirror of
https://github.com/github/codeql.git
synced 2025-12-21 19:26:31 +01:00
QL code and tests for C#/C++/JavaScript.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
class Clock extends React.Component {
|
||||
constructor(props) {
|
||||
super(props);
|
||||
this.state = { };
|
||||
}
|
||||
|
||||
render() {
|
||||
// BAD: this.state.date is undefined
|
||||
var now = this.state.date.toLocaleTimeString();
|
||||
return (
|
||||
<div>
|
||||
<h2>The time is {now}.</h2>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user