Closed miello closed 1 year ago
Due to #125, I decide to fix by adding some extra function in renderRouteSidebarItems
renderRouteSidebarItems
I think this approach is simpler than useState in this situation because it need not to add onClose, onOpen drawer in many elements
useState
onClose
onOpen
But it might have better and cleaner way to do this, please let me know if there are better approach
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Due to #125, I decide to fix by adding some extra function in
renderRouteSidebarItems
I think this approach is simpler than
useState
in this situation because it need not to addonClose
,onOpen
drawer in many elementsBut it might have better and cleaner way to do this, please let me know if there are better approach