Switch

Pascual Vila
Frontend Instructor.
Switch is a React Router component used to wrap all application routes. It ensures that only the first Route that matches the current URL is rendered, instead of rendering all matching ones.
Example of Switch usage:
{`import React from "react";
import { Switch, Route, BrowserRouter as Router } from "react-router-dom";
function App() {
return (
);
}
export default App;`}