// src/App.jsx
function Badge({ text, color = "gray" }) {
return (
{text}
);
}
function App() {
return (
);
}
export default App;
/*
Notes:
- The first Badge passes "green" explicitly, overriding the default.
- The second Badge omits color entirely, so the default parameter
value "gray" is used instead — same as default parameters on any
regular JS function.
*/