text: import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
  import './App.css';
  import Home from './pages/Home/Home';
  import Profile from './pages/Profile/Profile';
  import Login from './pages/Login/Login';
  import Register from './pages/Register/Register';
  
  function App() {
    return (
      <div className="App">
        <Router>
          <Switch>
            <Route path="/register" component={Register} />
            <Route path="/login" component={Login} />
            <Route exact path="/" component={Home} />
            <Route exact path="/profile/:username" component={Profile} />
          </Switch>
        </Router>
      </div>
    );
  }
  
  export default App;
  