← React Beginner Questions - Set 7 Q63
React Beginner Questions - Set 7
1 2 3 4 5 6
function Greeting({ name }) { return <p>Hello, {name}</p>; } // used as <Greeting name="Ana" /> // a component IS a function that returns JSX