Yes, <Switch> can be used with <MemoryRouter>. <MemoryRouter> provides the routing context that <Switch> needs to function correctly.
Question 16 of 20 in Switch Quiz