How to correctlycreate reusable useLocation function in reactJS

前端 未结 0 1290
渐次进展
渐次进展 2020-12-18 15:06

I have this code in my many components

    useLocation().pathname === `/${l.toLowerCase()}`;

Now I want to create a function and put this cod

相关标签:
回答
  • 消灭零回复
提交回复
热议问题