I'm a quite beginner to React and Redux...I need to use Match object in my application...but I'm getting the following error..
Attempted import error: 'Match' is not exported from 'react-router'.
Same error is given when tried with 'react-router-dom' as well.
import React from 'react';
import logo from './logo.svg';
import './App.css';
import {Link} from 'react-router-dom'
import {Match} from 'react-router';
import GamesPage from './GamesPage'
//import './reducers/games'
function App() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
</div>
<p>
<Link to="games">Games</Link>
</p>
<Match pattern="/games" component={GamesPage} />
</div>
);
}
export default App;