mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
25 lines
428 B
JavaScript
25 lines
428 B
JavaScript
function Hello(props) {
|
|
return <div>Hello {props.name}</div>;
|
|
}
|
|
|
|
function Hello2(props) {
|
|
return React.createElement("div");
|
|
}
|
|
|
|
function Hello3(props) {
|
|
var x = React.createElement("div");
|
|
return x;
|
|
}
|
|
|
|
function NotAComponent(props) {
|
|
if (y)
|
|
return React.createElement("div");
|
|
return g();
|
|
}
|
|
|
|
function SpuriousComponent(props) {
|
|
if (y)
|
|
return React.createElement("div");
|
|
return 42;
|
|
}
|