Get URL in React with Hooks

前端 未结 0 1988
时光说笑
时光说笑 2021-02-06 05:54

I need to get parameters in a hooks component, what\'s the cleanest way without using react-routes? Is windows.location.search enough? How to use it in a clean way with hooks?

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