Skip to content
Advertisement

How to solve “Uncaught TypeError: Cannot read property ‘params’ of undefined” reactjs + django

i’m practicing reactjs watching this video https://www.youtube.com/watch?v=5rh853GTgKo&list=PLJRGQoqpRwdfoa9591BcUS6NmMpZcvFsM&index=9

I want to verify my information using uid and token, but I don’t know how to deliver it.

In this code: Activate.js in container

JavaScript

and this code : auth.js in actions

JavaScript

i think i didn’t render uid, token but i confused how to do that

App.js code:

JavaScript

I’d appreciate any help. 🙂

Advertisement

Answer

use the useParams hook to extract uid and token params:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement