import React from 'react';
import { Route, Routes } from 'react-router-dom';
import Home from './Home';
import './App.css';

const App = () => (
  <Routes>
    <Route path="/" element={<Home/>} />
  </Routes>
);

export default App;

@@ -36,22 +36,22 @@
  Route, 
-Routes
+Switch
  %7D from 
@@ -141,22 +141,22 @@
 =%3E (%0A  %3C
-Routes
+Switch
 %3E%0A    %3CR
@@ -198,14 +198,14 @@
   %3C/
-Routes
+Switch
 %3E%0A);

use switch not routes