text: import React from "react";
  import { Switch, BrowserRouter as Router, Route } from "react-router-dom";
  import { ApolloClient, InMemoryCache, ApolloProvider } from "@apollo/client";
  import { LandingPage, NotFound, ToDoListPage } from "./pages";
  import './App.css';
  
  const client = new ApolloClient({
    uri: "/graphql",
    cache: new InMemoryCache(),
  });
  
  const App = () => {
    return (
      <ApolloProvider client={client}>
        <Router>
          <Switch>
            <Route path="/mytodos/*" component={ToDoListPage} />
            <Route exact path="/" component={LandingPage} />
            <Route component={NotFound} />
          </Switch>
        </Router>
      </ApolloProvider>
    );
  }
  
  export default App;
  