Open djv03 opened 1 year ago
import './App.css'; import React, { Component } from 'react' import Navbar from './components/Navbar'; import News from './components/News'; import ErrorBoundary from './components/ErrorBoundary' import { BrowserRouter, Route, Routes, } from "react-router-dom";
export default class App extends Component { render() { return (
)
} }
hey! I know How to fix error. if want to help others by letting them know the solution then make the PR. if any query reply to this message
Downgrade your react-router-dom to v5.2.0 as follows, npm uninstall react-router-dom npm install react-router-dom@5.2.0
I knew it. But I have made PR based on latest routing docs
this issue might face by all of the fellow developer so I have pull request to solve this problem