How to use useNavigate() in ReactTS in a Class / Event
I’ve been having the problem that I can’t navigate through components, I always get Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component.
I’ve been having the problem that I can’t navigate through components, I always get Uncaught Error: Invalid hook call. Hooks can only be called inside of the body of a function component.