Thank you so much! I watched so many videos on this and your's the the only one so far that explains the correlation of the useparam object property name with the one set by programmer in the route definition.
I really appreciate that you used TypeScript in this, as I was dealing with a very similar type issue in my code and this helped me understand things better.
Great tutorial! I have a question: If I didn't want to pass the destructured { id } into the body where I am rendering, where would I pass it into the component? Say, for the purposes of rendering individual blog posts and for practical reasons not wanting the { id } to show up in the body with the blog texts.
Is there a way to initially start use params with the value? What I mean is without clicking on the route so you just start the page off with already a value
hi, nice tutorial also can you explain how to get from data in a hook like a query string. in PHP we use $_POST[""], but not able to find anything in reactjs except query string for URL params. Thank you in advance
If you're using React Router, it's very similar to the process I showed. They have a 'useParams' hook that let's you get the query string value, this shows how to use it: reactrouter.com/web/example/url-params
@@edutechional thank you for the reply but my use case is that the payment gateway is sending the success/failure response to my reactjs page route and the reply is in Form data, if the data is in url I can get it using query string but don't know how to get this form data (POST method) which is In key-value pair.
Love how you left the error in and explained in detail how to fix it. Much better than having a "perfect" video where everything just works.
Thank you so much! I watched so many videos on this and your's the the only one so far that explains the correlation of the useparam object property name with the one set by programmer in the route definition.
Best description! Thank you so much. Most youtube dev pages talk too fast and don’t explain the little important things.
This is exactly what I needed to complete my project. Well put in less than 10 minutes. Thank you!
I really appreciate that you used TypeScript in this, as I was dealing with a very similar type issue in my code and this helped me understand things better.
Brilliant guide, I was really struggling to wrap my head around this before I found your video, thank you!
exactly what I needed, just right to the point and very well explained! You can tell how much experience he's gotten! Thanks for this man!
i love you !! 😂😍 I was searching for 3h for this information. Thanks a lot ! 😘
A nice observation about another tutorials regarding to id .......
Great guide!!! This is what I have been looking for!!! Thank you so much for such a clear and detailed explanation!
Thanks a lot man. I had seen a number of videos but all of them were using another technique.
Great guide last one day I was searching but you solve my problem thanks. I do 777 like and 55 comment complete😂😂😂😂
it is a shame that this doesn't works with router 6, is a good video
Thank you. The best explanation I've come across.
Subscribed!
Keep up the good work!
Thanks man you have no idea how much you've helped me
Thankyou so much!!! Really helped me in my company's project! :)
goshhh, you explain things so clearly
you saved my day this is exactly what I needed thanks for the tutorial
Really thank you brother, It was help to release my stress... 🥰
Update: 'Switch' has been changed to 'Routes'. Just happened like a few days ago lol
Thank you! This is exactly what I was looking for.
useParams() is not working in the Class component. Then how can we get URL parameters when we use class component instead of a function component?
Nice!
I used it to create a referral link.
Thanks a ton! This is really very helpful
Any vids on doing this without useParams? I can't convert my react class to a SFC and thus hooks are not allowed.
Great tutorial! I have a question: If I didn't want to pass the destructured { id } into the body where I am rendering, where would I pass it into the component? Say, for the purposes of rendering individual blog posts and for practical reasons not wanting the { id } to show up in the body with the blog texts.
I'm not sure if I completely understand what you're wanting to do, but you could always create nested components and then pass the ID value as a prop
@@edutechional That answers my question, thank you!
Thank you so much!!! I really needed this
Excellent video, thanks for sharing :)
Is there a way to initially start use params with the value? What I mean is without clicking on the route so you just start the page off with already a value
useEffect with the param value is probably what you want to do if you haven't figured it out yet
Great amazing guide, what theme?
bro ? can use UseParams on a class component ? above render method ?
hey! i want to get url data using class component how can i get this ?
This was fantastic. Thank you!
Awesome tutorial. I think you might have helped solve a problem of mine. Instant subscribe.
I've done the same but my username and password are showing in the URL wich i dont like.. any idea how to hide it ??
Hey,
Can you please make a video on passing URL params using react-router-dom V6?
nice explanation
i want to pass user id in url , then what should i do
Thanks so much, it really helps
Great explanation!
Thanks man! this really helped
very helpful thanks
hi, nice tutorial also can you explain how to get from data in a hook like a query string. in PHP we use $_POST[""], but not able to find anything in reactjs except query string for URL params. Thank you in advance
If you're using React Router, it's very similar to the process I showed. They have a 'useParams' hook that let's you get the query string value, this shows how to use it: reactrouter.com/web/example/url-params
@@edutechional thank you for the reply but my use case is that the payment gateway is sending the success/failure response to my reactjs page route and the reply is in Form data, if the data is in url I can get it using query string but don't know how to get this form data (POST method) which is In key-value pair.
thanx for the help!
In a function, this is clear, but how to do it in a class?
Thank you man !
perfect !
love you man ..
clear english :)
flew over my head at the end : ???? : ?????? meeeeh
Thankuu so much
thanks!!!!
THANKSSSSSSS CNM
Thanks
thanx
#useParams()