Quiz: A Warning in the Console

The sign-up for news by email looks right, but each time the app starts, React shows a warning in the console. Click the line with the mistake.

export default function App() {
    return (
        <main className="festival">
            <h1>Summer Sounds</h1>
            <p className="dates">Friday and Saturday</p>
            <label htmlFor="email">Email for news</label>
            <input id="email" className="field" />
            <button class="signup">Sign up</button>
        </main>
    );
}

Start programming for free

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

Or sign up with:

Back

4/9

Next