Skip to content

Commit

Permalink
updated App.jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
StarKnightt committed Oct 9, 2024
1 parent 57a36be commit 076f883
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/App.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import React from 'react';
import React, { lazy, Suspense } from 'react';
import Header from './components/Header';
import Hero from './components/Hero';
import Menu from './components/Menu';
import Experience from './components/Experience';
import Testimonials from './components/Testimonials';
import Footer from './components/Footer';
import About from './components/About';
import { motion } from 'framer-motion';
import './App.css';
import './App.css';

const Menu = lazy(() => import('./components/Menu'));
const Experience = lazy(() => import('./components/Experience'));
const Testimonials = lazy(() => import('./components/Testimonials'));
const Footer = lazy(() => import('./components/Footer'));
const About = lazy(() => import('./components/About'));

function App() {
return (
Expand All @@ -19,11 +20,13 @@ function App() {
>
<Header />
<Hero />
<Menu />
<Experience />
<About />
<Testimonials />
<Footer />
<Suspense fallback={<div>Loading...</div>}>
<Menu />
<Experience />
<About />
<Testimonials />
<Footer />
</Suspense>
</motion.div>
);
}
Expand Down

0 comments on commit 076f883

Please sign in to comment.