Quiz: An Empty Page

The page should show the header, two tickets and the footer. But it's empty, and the console says Element type is invalid: … but got: undefined. … you might have mixed up default and named imports. Look at the other files too, then click the line with the mistake.

import Header from "./Header.jsx";
import { FridayTicket, WeekendTicket } from "./Tickets.jsx";
import { Footer } from "./Footer.jsx";

export default function App() {
    return (
        <>
            <Header />
            <div className="tickets">
                <FridayTicket />
                <WeekendTicket />
            </div>
            <Footer />
        </>
    );
}

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

Back

4/6

Next