export default function App() { useEffect(() => { document.title = 'Module 22.2: useReducer Review'; }, []); return ( <NameProvider> <NameComponent /> </NameProvider> ); }
The function App is a component that sets the title of the page. It also renders the components NameProvider and NameComponent.