// src/App.jsx
function MovieCard({ title, year }) {
return (
{title} ({year})
);
}
function App() {
return (
);
}
export default App;
/*
Notes:
- title is passed as a plain string, year as a number — note the
curly braces around {2010} since it's a real number, not text.
- MovieCard is destructured straight in the parameter list, so the
component body can use title and year directly.
*/