Component Props

React
Junior
Functional componentsProps

Requirements

  • Add a name prop to the Greeting component and display it inside Greeting.
  • Pass "TechPrep" from App so the page shows Hello, TechPrep!
App.js
import Greeting from "./Greeting";

export default function App() {
  return (
    <div className="App p-3">
      <Greeting />
    </div>
  );
}

Browser

JavaScript Console

console.log()
statements will appear here

Run Tests

Click the 'Run' button below to run the tests
in the run.test.js file

Submit

Click the 'Submit' button below to submit your solution

Open browser consoleTests

AI Analyzer