useParams not working with useState (React hooks)

前端 未结 0 1182
青春惊慌失措
青春惊慌失措 2021-01-30 06:11

I was trying to make a component with a dynamic variable that changes depending on the specific route. I used useParams to extract two variables such as gameName and taskNumber.

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