I am a bit lost with this issue for a whole day. On button click the url changes but does not render the new page and I don't understand why.
I am using react-dom-router 5.2.0
                       INDEX JS
 import {Router} from 'react-router-dom';
 import history from './history';
ReactDOM.render(
  <React.StrictMode>
    <Router history={history}>
      <App />
    </Router>
</React.StrictMode>,
  document.getElementById('root')
);
                           APP JS
import Server from './Server';
import React from 'react';
function App() {
  return (
   <Server />
  );
}
export default App;
                           SERVER JS
export default class Server extends Component
{
render()
    {
        return(
            <div className="Homepage" >
                <h1 className="header">Server</h1>
                     <button  className="button" 
                    onClick={() => history.push('/control')}>
                            Lets go
                    </button>
                }
      </div>
        );  
    }
}
Please Note : I added <Control/> directly in the render method above and it renders the component all well .
                        CONTROL JS
import React, {Component} from 'react';
import Page2_View from './Page2_View';
export default class Control extends Component
{
    constructor(props)
    {
        super(props);
    }
    render()
    {
        return(
            <Page2_View/>
        );
    }
}
                    Page2_View
import React, {Component} from 'react';
const Page2_View = (props) =>
{
    return(
        <h1> PAGE 2 VIEW </h1>
    );
}
export default Page2_View;
         ROUTES JS
import {BrowserRouter as Router, Route, Redirect, Switch} from 'react-router-dom';
const Routes = () =>
{
    return(
            <Router>
                <div>
                    <Switch>
                        <Route exact path="/test" component={Server}/>
                        <Redirect from = '/test' to = '/control'/>
                        <Route exact path="/control" component={Control}/>
                    </Switch>
            </div>
            </Router>
    );
}
export default Routes;
                          HISTORY JS
import {createBrowserHistory as history} from 'history';
export default history();
I appreciate all the help. Thank you
 
     
    