following is my App.js file, i am working on Class-based components

```
import "./App.css";

import React, { Component } from "react";
import NabBar from "./components/NabBar";
import News from "./components/News";
import Spinner from "./components/Spinner";
import { Routes, Route, Router,Switch } from "react-router-dom";

export default class App extends Component {
  render() {
    return (
      <div>
        <Router>
          <NabBar />
          <Switch>
            <Route path="/">
              <News pageSize={3} country={"us"} category={"general"} />
            </Route>
            <Route path="/business">
              <News pageSize={3} country={"us"} category={"business"} />
            </Route>
          </Switch>
        </Router>
      </div>
    );
  }
}

```

I have tried a lot of things but was unable to solve this problem.