forked from moulik-deepsource/demo-javascript
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTestComponent.js
More file actions
45 lines (41 loc) · 843 Bytes
/
TestComponent.js
File metadata and controls
45 lines (41 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import Head from "next/head";
/** next-google-font-display */
export default Test = () => {
return (
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Krona+One"
rel="stylesheet"
/>
</Head>
);
};
/** next-google-font-preconnect */
export const TestTwo = () => (
<div>
<link href="https://fonts.gstatic.com" />
</div>
);
/** no-page-custom-font */
export function IndexPage() {
return (
<div>
<Head>
<link
href="https://fonts.googleapis.com/css2?family=Inter"
rel="stylesheet"
/>
</Head>
<p>Hello world!</p>
</div>
);
}
/** no-sync-scripts */
export const Home = () => {
return (
<div class="container">
<script src="https://third-party-script.js"></script>
<div>Home Page</div>
</div>
);
};