Added next dynamic import to sections on pages
This commit is contained in:
parent
e587053eca
commit
f2e387f9d3
@ -1,7 +1,13 @@
|
||||
import React from "react";
|
||||
import Navbar from "../Components/Layout/navbar.jsx";
|
||||
import Section from "../Components/Layout/section.jsx";
|
||||
import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx";
|
||||
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Section = dynamic(() => import("../Components/Layout/section.jsx"));
|
||||
const ContactFormSection = dynamic(() =>
|
||||
import("../Components/Layout/ContactFormSection.jsx")
|
||||
);
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
<>
|
||||
|
@ -1,7 +1,11 @@
|
||||
import React from "react";
|
||||
import Navbar from "../Components/Layout/navbar.jsx";
|
||||
import Section from "../Components/Layout/section.jsx"
|
||||
import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const ContactFormSection = dynamic(() =>
|
||||
import("../Components/Layout/ContactFormSection.jsx")
|
||||
);
|
||||
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
@ -1,7 +1,13 @@
|
||||
import React from "react";
|
||||
import Navbar from "../Components/Layout/navbar.jsx";
|
||||
import Section from "../Components/Layout/section.jsx"
|
||||
import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx";
|
||||
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Section = dynamic(() => import("../Components/Layout/section.jsx"));
|
||||
const ContactFormSection = dynamic(() =>
|
||||
import("../Components/Layout/ContactFormSection.jsx")
|
||||
);
|
||||
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
@ -1,7 +1,11 @@
|
||||
import React from "react";
|
||||
import Navbar from "../Components/Layout/navbar.jsx";
|
||||
import Section from "../Components/Layout/section.jsx"
|
||||
import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Section = dynamic(() => import("../Components/Layout/section.jsx"));
|
||||
const ContactFormSection = dynamic(() =>
|
||||
import("../Components/Layout/ContactFormSection.jsx")
|
||||
);
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
@ -1,8 +1,11 @@
|
||||
|
||||
import React from "react";
|
||||
import Navbar from "../Components/Layout/navbar.jsx";
|
||||
import Section from "../Components/Layout/section.jsx"
|
||||
import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Section = dynamic(() => import("../Components/Layout/section.jsx"));
|
||||
const ContactFormSection = dynamic(() =>
|
||||
import("../Components/Layout/ContactFormSection.jsx")
|
||||
);
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
@ -1,7 +1,12 @@
|
||||
import React from "react";
|
||||
import Navbar from "../Components/Layout/navbar.jsx";
|
||||
import Section from "../Components/Layout/section.jsx"
|
||||
import ContactFormSection from "@/Components/Layout/ContactFormSection.jsx";
|
||||
import dynamic from "next/dynamic";
|
||||
|
||||
const Section = dynamic(() => import("../Components/Layout/section.jsx"));
|
||||
const ContactFormSection = dynamic(() =>
|
||||
import("../Components/Layout/ContactFormSection.jsx")
|
||||
);
|
||||
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
Reference in New Issue
Block a user