I want to implement routes for my React application. I am using react-router-dom library for this purpose. I am able to implement routes for navigation bars.
I have a dropdown list. I also have a requirement to create a route for each elements in this dropdown list. Internally, react-router-dom uses NavLink component for creating a route which is again a HTML ‘a’ tag internally. And It seems that, It does not fit for the option tag inside the select HTML tag.
I did not find any satisfactory answer from the web.
What can be the right solution for this?
Thank you in advance!