Small optimization: you could use the useParams() hook to get the params instead of using props.match.params.
You said what I was going to say ;)
I tried to use useParams() and it works fine but when i refresh the page all the content dispear
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Small optimization: you could use the useParams() hook to get the params instead of using props.match.params.
You said what I was going to say ;)
I tried to use useParams() and it works fine but when i refresh the page all the content dispear