Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

373
Views
cómo usar navegar en reaccionar con reaccionar-redux

Estoy haciendo una espuma de inicio de sesión en reaccionar usando react-redux, por favor sugiérame cómo usaré navegar aquí

 const { isAuthenticated, error, loading} = useSelector(state =>state.auth); useEffect(()=>{ if(isAuthenticated){ navigate("/dashboard"); } if(error){ // alert.error(error); dispatch(clearErrors()); } }, // [dispatch,alert,isAuthenticated,error,navigate] [dispatch,isAuthenticated,error,navigate] )

ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

¿ useNavigate en la parte superior del archivo de esta manera?

import { useNavigate } from "react-router-dom";

Luego, para usarlo, asígnalo a una variable:

let navigate = useNavigate();

luego utilícelo como lo tiene en el código: navigate("/dashboard");

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!