React Router V4 Implement NavLink inside a ListItem using Material UI

后端 未结 3 1731
礼貌的吻别
礼貌的吻别 2021-02-06 01:50

I am new to React and I created a simple application with Login and Dashboard page. I have successfully configured my Public Routes

3条回答
  •  感情败类
    2021-02-06 02:15

    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!

提交回复
热议问题