text: import React from 'react';
  import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
  
  import Home from './pages/Home';
  import Details from './pages/Details';
  
  function App() {
      return (
          <Router>
              <Switch>
                  <Route path="/" exact component={Home} />
                  <Route path="/details/:id" component={Details} />
              </Switch>
          </Router>
      );
  }
  export default App;