Worksheet 09 Answer

Topic: Jit-React

Lesson: Components

Second tiny example from memory

Completed answer for worksheet 9:
One valid answer is a second tiny version with the same idea:

function StatusCard( props )
{
    return <section className="card">
        <h2>{props.title}</h2>
        <p>{props.message}</p>
    </section>;
}

// Safe change: Components practice

Done when: the learner can show this answer, point to the changed line or item, and explain it in plain English.