I am always excited when there is a new release of any of my favourite libraries/frameworks/languages, At about 6 pm yesterday while scrolling thro...
For further actions, you may consider blocking this person and/or reporting abuse
Hi Nero,
I'm just learning reactJS and I'm having a problem with app I'm working on.
It is supposed to be an online store. I've a product object use to store data about the various products for sale.
The challenge I'm having is how to pass this object in my route statement to the component that will display this object as a kind of catalog.
Currently, I've the following line in my router block:
where {Product} is the component.
I'll really appreciate your help. Thanks.
There is a bug at the example for useParams in V5.0
the 4th line:
let id = match.params;
It should be :
let {id} = match.params;
thanks for pointing that out
Thank you for this post !
I will try these soon :D
Nice post!
In your second code block you imported useHistory but then used useParam.
Fixed that.
Thanks Justus
Hi nero, I was wondering how to make a protected route using react-router hooks ?? thanks
Bro, you are a life saver!! thanks a lot!! I didnt kno y location wasnt working for me until I found your post, hooks have got me forgetting how to walk the walk
Very nice! I've been waiting for this
Nice to see, but I do not understand the last hook, can you introduce me more?
Maybe a different usecase of useRouteMatch might help you understand. Checkout this short tutorial link
This incredible stuffs.