// src/App.jsx
function Footer() {
return (
);
}
function App() {
return (
My First React App
If you can see this, JSX is rendering correctly.
);
}
export default App;
/*
Notes:
- Footer is just another function that returns JSX — exactly the
same shape as App itself.
- uses Footer like an HTML tag inside App's JSX. The
capital letter is what tells React this is a component rather
than a built-in HTML element.
- App's single root now contains three children: the h1, the
p, and the Footer component — still only one root element overall.
*/