Command Palette

Search for a command to run...

Hectal
Phase 0: Start Here: Why React
React · Exercise 2 of 5 PreviousNext
Beginner

One component, used three times

Write a component named Tip that returns a <div className="tip"> containing an <h2> with the text Tip and a <p> with the text Practise a little every day.

Render <Tip /> three times inside App.

What Check tests

  1. There is a component named Tip
  2. The page shows exactly three .tip boxes
  3. Each box has an <h2> saying Tip
  4. Each box has the paragraph Practise a little every day.

Stuck? One hint at a time

The solution unlocks after your first Check. Try first: that is where the learning happens.

Runs in your browser. Your code is saved here.

Your page

Press Run to see the page.

Console

Nothing logged yet.