re: Hooks Introduced in React-Router v5.1 VIEW POST

FULL DISCUSSION
 

Nice post!

In your second code block you imported useHistory but then used useParam.

 
code of conduct - report abuse