I am using React Router & I have a nested route which have a query parameter called ?q & my routing code looks like this:
<Route path="/" component={TopNavContainer}>
<Route path="search?que=:q" component={SearchContainer} />
</Route>
but when I try to access my route as http://localhost:8000?q=machine
It only loads the content of the parent container which is TopNavContainer.
Any help is appreciated.
Regards Vaibhav