narze / react-useless

Monorepo for react hooks, mostly useless btw
https://react-useless.vercel.app
53 stars 81 forks source link

Make button in drawer close drawer when click #148

Closed miello closed 1 year ago

miello commented 1 year ago

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 add onClose, onOpen drawer in many elements

But it might have better and cleaner way to do this, please let me know if there are better approach

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-useless ✅ Ready (Inspect) Visit Preview Oct 22, 2022 at 2:24PM (UTC)