-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Script, Link , Image Components in nextjs done
- Loading branch information
1 parent
4870039
commit 4f4bbd8
Showing
4 changed files
with
31 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
NextJS/123_script_link_image_component/app/contact/page.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
import React from 'react' | ||
|
||
import Script from 'next/script' | ||
|
||
const contact = () => { | ||
return ( | ||
<div> | ||
<Script> | ||
{` alert("welcome to contact page");`} | ||
</Script> | ||
I am Contact | ||
</div> | ||
) | ||
} | ||
|
||
export default contact | ||
export default contact | ||
|
||
export const metadata = { | ||
title: "Contact Facebook - Contact with peoples", | ||
description: "This is Contact facebook", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,15 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
const nextConfig = { | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: 'https', | ||
hostname: 'www.simplilearn.com', | ||
port: '', | ||
|
||
}, | ||
], | ||
}, | ||
}; | ||
|
||
export default nextConfig; |