);
}
function App() {
return (
);
}
export default App;
/*
Notes:
- NotificationProvider exposes both notifications (the reducer's
state) and dispatch through context — NotificationTrigger only
ever needs dispatch, NotificationList needs both.
- Neither consumer holds its own copy of the notifications array;
both read from and update the same single reducer-managed state,
exactly the useReducer + Context pairing described in the chapter.
*/