I have my root component main switch like this
<Provider store={createStoreWithMiddleware(reducers)}>
<HashRouter history={history} >
<Switch>
<Route exact path="/login" name="Login Page" component={Login}/>
<Route exact path="/register" name="Register Page" component={Register}/>
<Route exact path="/404" name="Page 404" component={Page404}/>
<Route exact path="/500" name="Page 500" component={Page500}/>
<Route path="/Console" name="Console" component={Console}/>
<Route path="/" name="Home" component={Full}/>
</Switch>
</HashRouter>
</Provider>
And inside the Console component I have another switch defined like this
<main className="container">
<div className="">
<Switch>
<Route path="/Create" name="Create Park" component={CreateNew} />
<Route path="/" name="Console" component={HomePage} />
</Switch>
</div>
</main>
When I visit /Console HomePage component shows properly.
But the when I visit /Console/Create CreateNew component would not show but instead shows HomePage component.
What I am doing wrong here ? What should I do to show CreateNew component at /Console/Create