Component Props
React
Junior
Functional componentsProps
Requirements
- Add a
nameprop to theGreetingcomponent and display it insideGreeting. - Pass
"TechPrep"fromAppso the page showsHello, TechPrep!
import Greeting from "./Greeting"; export default function App() { return ( <div className="App p-3"> <Greeting /> </div> ); }
JavaScript Console
console.log()statements will appear here
Tests
AI Analyzer