I was looking at using antd for the current project. The current small snag is antd sets the “active” link on the wrapping Menu component. Is there an easy way to get the currently active routes name?
At the moment I’m specifying the key of each menu item to match the route name so this should solve the “problem” if that is doable.
Our paths look like /dashboard, /dashboard/profile, /dashboard/tokens, etc. Also useLocation may be better, I’d written this all the way back in RW 0.6
Just a headsup, if you’re not commited to using antd, it can be quite heavy. See our live bundle here https://tape.sh/bundle-analyzer-output.html I’ve tried various optimisations, but short of individually eliminating modules, I couldn’t get antd much smaller.
Please do let me know if you find a way around this.