mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
8 lines
420 B
TypeScript
8 lines
420 B
TypeScript
var href = "http://example.com";
|
|
var linkTypes = { rel: "noopener noreferrer" };
|
|
<a href={href} target="_blank" {...linkTypes}>Link to {href}. {/*TODO: need more exciting link text*/}</a>;
|
|
<MyComponents.FancyLink foo="bar"/>;
|
|
<Foo/>; // interpreted as a custom component because of capitalisation
|
|
<Foo-Bar/>; // interpreted as an HTML element because of the dash
|
|
var fragment = <> fragment text <Foo/> more text </>
|