79318462

Date: 2024-12-30 19:43:01
Score: 1
Natty:
Report link

I think you will have no problem useParams is not the react hook, it's officially provided by react-router-dom

So technically,it will process the slug with your component and provide it before that route code is loaded

you can do simple validation on backend or frontend

if(!slug) return

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Career Yash