Spaces:
Running
Running
File size: 635 Bytes
b3c8917 | 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 | import { useEffect } from 'react';
import Hero from '../components/Hero';
import Features from '../components/Features';
import PopularCourses from '../components/PopularCourses';
import Testimonials from '../components/Testimonials';
import CTA from '../components/CTA';
import { useCourse } from '../context/CourseContext';
export default function Home() {
const { featuredCourses, getFeaturedCourses } = useCourse();
useEffect(() => {
getFeaturedCourses();
}, []);
return (
<>
<Hero />
<Features />
<PopularCourses courses={featuredCourses} />
<Testimonials />
<CTA />
</>
);
} |