);
}
function App() {
return ;
}
export default App;
/*
Notes:
- name lives only in Parent — neither NameInput nor NameGreeting
has its own copy of this state.
- NameInput receives both the current value and a way to change it
(onNameChange, which is really setName under a clearer prop name);
NameGreeting only needs to read the value, so it receives just name.
*/