I am new to React and I created a simple application with Login and Dashboard page. I have successfully configured my Public Routes
You can do it by setting the NavLink as the component of the list item. Here is an example that has worked for me!
Hope it helps!