I tried several thing to match the query string and show component according to that but no luck, my code:
<Route path="/wp-admin/admin.php" element={<PageOne />} >
<Route path="/wp-admin/admin.php/?id=two" element={<PageTwo />} />
<Route path="/wp-admin/admin.php/?id=three" element={<PageThree />} />
</Route>
I want to show component PageTwo and PageThree according to query string but it's not working, I tried using :id in parent Route but it's not working, I think I am missing something basic here.